Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unselecting a List Item
Message
From
15/11/2006 18:19:41
 
 
To
15/11/2006 16:52:47
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01170086
Message ID:
01170117
Views:
8
>How can I programatically de-select a List item(so highlighted background color returns to unselected color).
>
>What I have is two listboxes. The second list box behavior is based on first. I need the second list box to revert to unsselected state if first list box selection is changed.

First, set the MultiSelect property to .T.. Then use the listbox.Selected collection to select and unselect the various items.

thisform.listbox.Selected( thisform.Listbox.ListIndex ) = .F.
Greg Reichert
Previous
Reply
Map
View

Click here to load this message in the networking platform