Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ListBox little problem
Message
From
09/11/2001 10:24:15
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00579643
Message ID:
00579650
Views:
40
>Hi everybody,
>
>I've added Selected All feature for my multiselect listbox (by button and by Ctrl+A). Now, when I click on item in ListBox with all items selected, it selects only this item and deselect all others. It's not the same behavior in WE, where it's exactly oposite. So, I'd like click on ListBox to behave this way: if this item is selected, it should deselect it. How can I make this? I'm a little bit confused, which ListBox property I need to use.
>
>Thanks in advance.

You want to toggle all values to the opposite?
with thisForm.list1
    for i = 1 to .listcount
       .selected(i) = !(.selected(i))  && or set to .t. for all on
                                       && or set to .f. for all off
    next i
endwith
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform