Proper way to determine the state of an Option Button?

Started by John Montenigro, August 15, 2014, 04:08:22 PM

Previous topic - Next topic

John Montenigro

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

José Roca

The code of the two functions is idntical. Therefore, it doesn't matter which one do you use.

John Montenigro