Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiselect Listbox
Message
From
21/01/2003 15:56:08
 
 
To
21/01/2003 15:44:23
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00743914
Message ID:
00743930
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
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform