Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can you select items in a listbox by value?
Message
From
14/12/2000 14:47:28
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00453572
Message ID:
00453579
Views:
26
>What I want to do is select an item in a listbox by specifying a string value that I know should exist somewhere in the list. I do not know the ItemID or the specific nIndex because the RowSource is a field of a table.

How about just setting the Value property then?

>If I move the record pointer in the table, the listbox does not move to the row with the corresponding value.

Do you have the control source set too? The RowSource defines the list, the ControlSource is the value of that list. If it is set, do you refresh() it after moving the pointer?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform