Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Loop through all selected items in a listbox
Message
De
03/01/2000 15:54:27
 
 
À
03/01/2000 15:53:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00311890
Message ID:
00311898
Vues:
39
>>Hi everyone,
>>
>>Sorry for this simple question, but how can I operate with selected item values in a multiselected listbox? Say, I want to remove each selected item (several in one time) from the list, how can I do it?
>
>Since the ListBoxes Selected property is like an array, you could traverse it starting from the end back towards the beginning so as not to disturb the order while you're deleting entries:
>
>FOR x=oListBox.ListCount TO 1 STEP -1
> remove your entry
>ENDFOR

Sorry Nadya, you would reference it as oListBox.Selected(x) and remove that.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform