Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programmataly selecting combo box value
Message
From
22/09/2011 16:08:12
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01524364
Message ID:
01524366
Views:
65
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform