Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unselecting items in listboxes
Message
From
15/02/1999 13:20:45
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00185773
Message ID:
00187742
Views:
20
>I have a form with 5 listboxes (one for each day). Users select a particular record from a particular day this way. My problem is that when a user moves from one listbox to another, the selection they may have made stays highlighted, so when they go on to another listbox and select a record there are 2 or more highlights showing on the form. How do I unhighlight selections in a listbox that has lost focus? Anyone know?
>
>Thanks,
>Diana
>
>dgard@musician.org

I believe the command is:

thisform.listbox1.selected(nIndex) = .f.

where nIndex it the item number of the highlighted item

BTW, setting it to .t. allows you to programmatically highlight items in other list boxes based on a selection etc.

Rock Jensen
Previous
Reply
Map
View

Click here to load this message in the networking platform