Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do you programmatically select an item in a list box
Message
From
03/04/2000 07:18:59
 
 
To
01/04/2000 13:48:27
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00353912
Message ID:
00354210
Views:
20
How do you do the same in aa treeview
Peter


>>I have a list box. It has a sql row source, and no control source. I want to programatically make a particular item selected. I've tried all sorts of ways but none of them work.
>>
>>Any ideas? All help appreciated.
>
>
You can set its value, displayvalue or listindex.
>
myListbox.Value = "SomeValueFromSQLCursor"
>myListBox.Value = 5 && 5th item
>myListBox.ListIndex = 10 && 10th item
Cetin
Peter Cortiel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform