Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiselect Listbox
Message
From
21/01/2003 16:09:24
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00743914
Message ID:
00743944
Views:
9
>>Hello all! I have just added a listbox to a form in my application and set the multiselect property to .T. The listbox is working fine, I am trying to figure out how to store the data the user selects so that I can use it as search criteria in a SQL statement. Can anyone shed some light on this for me?
>>
>>TIA!
>
>You have to spin through the entire contents of the ListBox and check the Selected property of each entry.
>

>FOR x=1 TO oList.ListCount
> IF oList.Selected(x)
> * item is selected
> ENDIF
>ENDFOR


How would you handle it if someone selects an item and then deselects it? How would I remove it from the list?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform