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
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:
01524374
Vues:
58
>I did that (all values are char type) and the value showing in the combo box did change to that value until I clicked on it. It then reverted to the original value. Clicking and selecting a second time then works. I just don't want the user to have to do that because it gives it such a bad feel.
>
>Thanks anyway.
>John.


Try setting ListIndex property or also DisplayValue property.

>
>>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.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform