Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deselecting a list item in a list box
Message
From
05/10/1998 06:23:41
 
 
To
05/10/1998 03:49:05
Edward Crawford
City Facilities Management
Glasgow, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00143155
Message ID:
00143798
Views:
34
>That will remove the highlight bar from the item, but what I want to do is select an item and have that item become unselectable again, ei grey out that item. My question was a little vague. Any idea how to do that?

Try:
IF MyListBox.ListItemID > 0
   MyListBox.Selected(MyListBox.ListItemID) = .F.
   MyListBox.ListItemID = -1
ENDIF
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform