Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Highlight a list entry
Message
From
21/03/1998 10:15:14
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00086193
Message ID:
00086198
Views:
29
>Hey Allen,
>
>I'm not sure I exactly follow where you're going but I think you might want to take a look at the ListIndex property of the listbox. Setting it to 3 will highlight the 3rd item, setting it to 5 the 5th, and so on. Also, if you would like nothing to be selected you can set ListIndex to 0.
>
>hth,

Thanks Jim,

I just started looking at that property between the time I posted the message and got your reply. However, there's an additional problem. I want the highlighted item to agree with the current record pointer. For example, the user might move the record pointer in a grid on another page. When the page with the list box is selected again, I want the selected item to agree with the current record. I can calculate the correct ListIndex number by counting the number of records that are included in the current filter arguement, then calculating the offset from the first record to the currently selected record and setting the ListIndex to that. It seems like there should be an easier way...

Allen
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform