Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unselecting items in listboxes
Message
From
13/02/1999 22:12:20
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00185773
Message ID:
00187469
Views:
21
Thanks to you Evan and Barbara for replying to my question. My form is for clinic appointments. The users need to be able to look up a week at a time, but seperate out the days for easy reading (thus 5 list boxes on the page). Then they need to be able to fill in the appointments as necessary by clicking on the slot. When they press enter they go to another page where the details for that appointment can be entered. It all works very nicely and quite quickly once I started using arrays a list boxes instead of grids. The way I resolved the problem of having multiple selects showing is to run a for/endfor loop on the listbox in the lost focus event and make the selected() false for every item. This seems to work well. I do need the value, Evan, since I've bound the listbox to the appropriate appointment ID so I can go to that in the actual form when the user goes to the details page.

Diana

>>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?
>
>In the lost focus event of the listbox you can put this.value = ""
>
>This could erase to the value that you want to keep though. Could you explain what you are trying to do with the form?
Previous
Reply
Map
View

Click here to load this message in the networking platform