Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo box default selected item
Message
From
09/08/2001 15:41:59
 
 
To
08/08/2001 18:01:39
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00541586
Message ID:
00541962
Views:
15
Dan,

I may be missing something, here, but if all you want to do is highlight a particular item in the list, then after you create the array and requery() to update the list, set ListItemID to the number of the item you want to select.
WITH thisform.myCombobox
     * Add the array rowsource
     .AddProperty( "aRowSource[ 2 ]" )

     * Populate the array
     .aRowSource[ 1 ] = "Yes"
     .aRowSource[ 2 ] = "No"

     * Populate the list from the array.
     .Requery()

     .ListItemID = 2 --> "No" is highlighted and selected.

ENDWITH
Regards,
Jim Edgar
Jurix Data Corporation
jmedgar@yahoo.com

No trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.
Previous
Reply
Map
View

Click here to load this message in the networking platform