Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmataly selecting combo box value
Message
De
22/09/2011 16:08:12
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01524364
Message ID:
01524366
Vues:
64
Value should do it, but remember that value must be character type. This means that you may have to use transform() if the real value is numeric.

>Is there any way to Programmaticly select a combo box value. The setup is a follows:
>ControlSource = c_pageobj.stylename (Cursor field)
>RowSource = Thisform.aButtonStyle (Array)
>RowSourceType = 5 - Array
>
>I need to change the selected value through a procedure depending on what happens elsewhere.
>I tried doing a replace on (c_pageobj.stylename), setting Value = new value and doing a refresh. The value changed in the combo box until I clicked on it. It then returned to the original selected value. Also tried setting ListItemId = (array number). Same thing.
>
>Someone out there has to know more about this than me. Thanks.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform