Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A radio button question
Message
De
18/09/2000 10:32:43
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00417455
Message ID:
00417595
Vues:
22
Jim, another question.

The code would be more readable if I was able to use the button descriptions in a case statement instead of numbers, especially if there are more than two options. How would you do that?

Alex

>Alex,
>
>Assume the two codes are A and B and the text is "This One" and "That One".
>
>Set up your option group with two buttone, set the button captions to This One and That One. Do not set the controlsource at all. In teh OptionGroup's Refresh method put this;
>
>
>This.Value = IIF( Alias.Field = "A", 1, 2)
>
>
>In the InteractiveChange of the OptionGroup put this;
>
>
>REPLACE Alias.Field WITH IIF(This.Value=1,"A","B") IN Alias
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform