Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to select item(s) in listbox through code?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00598526
Message ID:
00598532
Views:
20
>My form has a listbox with multiselect on and I want to programatically select various items on the list.
>
>I have tried several ways to do this without success. It must be easy. Help!

Todd,
It is easy. Try myListBox.Selected(nIndex) = .T. where nIndex is the index number of the item you want to select. The index number usually equates to the order the items were added to the list.
HTH,
Winn Pauley
Previous
Reply
Map
View

Click here to load this message in the networking platform