Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multiselect Listbox
Message
De
21/01/2003 16:59:08
 
 
À
21/01/2003 16:50:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00743914
Message ID:
00744007
Vues:
16
>>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform