Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OptionGroup Change Programmatically
Message
De
11/12/2020 13:15:32
Antonio Lopes (En ligne)
BookMARC
Coimbra, Portugal
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01677515
Message ID:
01677523
Vues:
106
This message has been marked as the solution to the initial question of the thread.
J'aime (1)
>Hi,
>
>I am looking through all properties of the OptionGroup control (in VFP SP2 help). But I can't find how to change the option grammatically. For example, say the OptionGroup has 3 buttons. How do I set the button 2 to be selected programmatically?
>
>TIA
>
>UPDATE. I found that I can change it via the property Buttons array. Set the value of the array element to 1 and other buttons to 0 and the change is done.

Dmitry,

Use the .Value property and set it to something between 1 and the number of buttons. It will select the nth button.
----------------------------------
António Tavares Lopes
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform