Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiselect Listbox
Message
From
21/01/2003 16:59:08
 
 
To
21/01/2003 16:50:50
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00743914
Message ID:
00744007
Views:
9
>>>How would you handle it if someone selects an item and then deselects it? How would I remove it from the list?
>>
>>What's to handle? You would move your items to a selected table or an array or whatever method you use on LostFocus or something like that. If they've unselected an item, it won't show up as selected any more.
>
>
>That makes sense. I am obviously doing something wrong, though, because I am getting the same value in the array. I am entering values in the array by using This.value, which is obviously not right. Can you tell me what I should be using instead?
FOR x=1 TO oList.ListCount
  IF oList.Selected(x)
    * item is selected
    somevar = oList.List(x)
  ENDIF
ENDFOR
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform