Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing variables via option group
Message
De
19/05/1997 15:18:38
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00032616
Message ID:
00032825
Vues:
43
>>>>>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform