PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: John Montenigro on August 15, 2014, 04:08:22 PM

Title: Proper way to determine the state of an Option Button?
Post by: John Montenigro on August 15, 2014, 04:08:22 PM
I noticed that in a FF3 project, I'm using two different techniques to test the value of an option button.

In my "mainline" code:

   If IsTrue(FF_Control_GetOption(HWND_FRMMain_optWholesale))  Then CustomerType = "WHOLESALE"   


In a secondary function that determines which CustomerType has been selected:   
   
   If FF_Control_GetCheck(HWND_FRMMAIN_optWholesale)  Then Function = "WHOLESALE"

   
They both seem to return the proper result reliably.

Any reason that "GetCheck" might not work at some point?

Is there some condition under which one might work and the other fail?

Thanks,
-John
Title: Re: Proper way to determine the state of an Option Button?
Post by: José Roca on August 16, 2014, 04:30:50 AM
The code of the two functions is idntical. Therefore, it doesn't matter which one do you use.
Title: Re: Proper way to determine the state of an Option Button?
Post by: John Montenigro on August 16, 2014, 12:07:16 PM
Thanks, Jose!
I appreciate the info,
-John