Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Toggle ListBox Selection in a Form
Message
 
To
25/08/1999 21:46:40
Victor Lapid
Phil. Long Distance Tel. Co.
Manila, Philippines
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00257717
Message ID:
00257729
Views:
9
First you need to turn MultiSelect to .T. When you are ready to see which items are selected do the following:

* skip through and find selected items
FOR nCnt = 1 TO ThisForm.lstListBox1.ListCount
IF ThisForm.lstListBox1.Selected(nCnt)
* this item is selected - you can store it in an array or use
* the built in listbox array "List"
? ThisForm.lstListBox1.List(nCnt)
ENDIF
ENDFOR

Hope this helps.
Previous
Reply
Map
View

Click here to load this message in the networking platform