Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmataly selecting combo box value
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Programmataly selecting combo box value
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:
01524364
Vues:
117
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.
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform