Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do you programmatically select an item in a list box
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00353912
Message ID:
00353915
Views:
24
Hi John,

I had the exact same question a couple of days ago for a combobox.

Here's the answer I got for a combobox. I would think it would work that same as for a listbox. Try it and see. This worked for me outside my combobox like at Form Init time.

THISFORM.myCombobox.ListIndex = 1
THISFORM.myCombobox.DisplayValue = 'My Value'

HTH
Steve Kramer
Kramer & Kramer Design
"Home of Go Cartoons"
Web Site: www.stephenkramer.com
Would you believe Far Side Lite?
More than 270 original cartoons.
Previous
Reply
Map
View

Click here to load this message in the networking platform