Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing variables via option group
Message
From
19/05/1997 15:18:38
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00032616
Message ID:
00032825
Views:
45
>>>>>>OptionGroup.Value property returns exactly what you are looking for.
>>>>>
>>>>>Can you give me an example? like optiongroup.1 = .t. ?
>>>>
>>>>I'm sorry, I don't understand thi syntax: optiongroup.1 = .t.
>>>>Use standard method/property/events.
>>>
>>>In the 'OK' button, I wanted to know an example of correct syntax in testing for which option the user had highlighted.
>>
>>OptionGroup.Value is exact number of option selected by user. If e.g. OptionGroup contains 3 option and Value=2, it means that second option has been selected.
>Am a bit confused, Optiongroup1 has 4 choices,the user is to select one of them and then click on the 'OK' button. what line of code can I insert into the code section of the OK button to determine which option the user chose?

***OK button Click event
nChoice=thisform.optiongroup.value && this is number of option selected
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform