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:42:13
 
 
To
14/12/2000 14:32:30
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00453572
Message ID:
00453576
Views:
22
>>Is it possible to programmatically select item(s) in a listbox by the value(s) instead of using the Index or ItemID?
>
>The Selected property does this:
>
>Control.Selected(nIndex) = .T.

Hi Mike,

In that case it's necessary to know the nIndex values, or at least loop through them all to determine if they
are or aren't seletected, right? 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. If I move the record pointer in the table, the listbox does not move to the row with the corresponding value.

- Brian


VFP6 SP5, VFP8 SP1, VFP 9 SP 1 and Win XP SP 3 (unless otherwise specified)


www.wulfsden.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform