Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MultiSelect ListBox
Message
From
17/02/2001 15:45:24
 
 
To
17/02/2001 15:09:24
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00477006
Message ID:
00477037
Views:
22
Hi!

Thanks for the reply.

It seems to be a bug but I think I found a work around.

If in my CommandButton1.Click event I SetFocus to the ListBox and then loop through and mark all items as selected and then click on the scrollbars of the ListBox it seems to be working ok.

*-- Start of CommandButton1.Click
Local lnCnt

With ThisForm.ListBox1
.SetFocus()
for lnCnt = 1 to .ListCount
.Selected(lnCnt) = .T.
next
Endwith
*-- End of CommandButton1.Click

Sarosh

>I know that problem. It appears when the RowSourceType property of your
>the listbox is NOT (None or Value) - by example if you choose Alias.
>Also, I think that depends the number of items in the list. Try with 10
>or 20 items only. If it's a bug, it is there since version 3.0.
Previous
Reply
Map
View

Click here to load this message in the networking platform