Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Moving highlight bar in a listbox
Message
From
07/09/2007 08:30:59
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01252828
Message ID:
01252957
Views:
14
>>>I have a search box for user to enter a S/N. I want to search on it and have the listbox go to that record and highlight that particular row. Easy?
>>
>>Yes. Just set the list's ListIndex to the correct row. How you find that depends on the RowSourceType.
>>
>>Tamar
>
>I use rowsourcetype =3 SQl statement.
>So just a matter of issuing thisform.mylistbox1.ListIndex=some_number ?
>

Moving the record pointer may be enough. I never use the table-based RowSourceTypes, so I'm not sure. If not, set ListIndex to RECNO("the cursor").

Tamar
Previous
Reply
Map
View

Click here to load this message in the networking platform