>>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