Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox Bug & Workaround
Message
From
18/02/1999 13:12:07
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Listbox Bug & Workaround
Miscellaneous
Thread ID:
00188929
Message ID:
00188929
Views:
41
I have a ListBox control with RowSourceType = 5(Array) and MultiSelect = .T.

If I select an item(s) and then deselect an item, the deslected item becomes automatically selected again when the control loses focus.

I put the following workaround in the MouseUp Event which takes care of the problem:

IF NOT This.Selected(This.ListIndex)
This.DisplayValue = ""
ENDIF


The following also works, but affects a different behavior with respect to the remaining selected items:

This.Selected(This.ListIndex) = This.Selected(This.ListIndex)


Has anyone else experienced this problem?
- Jeff
Next
Reply
Map
View

Click here to load this message in the networking platform