Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Clearing Selected Items in A Listbox
Message
From
11/12/2001 13:53:55
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00592814
Message ID:
00592828
Views:
15
This message has been marked as the solution to the initial question of the thread.
Hello Kirk,

Please let me know if line 2 is required...
with thisForm.list1
    .setfocus()   &&  I'm not sure if this is necessary
                        &&      I have found that it is necessary
                        &&      when setting selections to .t.
    for i = 1 to .listcount        
       .selected(i) = .f.
    next i
endwith
>I'm sure this is an easy thing, but I have a listbox that allows for multiple selection. After the user selects the desired items and clicks the add button, I want to unselect the items they selected in the listbox. Is there an easy way?
>
>Thanks
>Kirk
Steve Gibson
Previous
Reply
Map
View

Click here to load this message in the networking platform