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 16:35:28
 
 
À
03/01/2000 15:59:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00311890
Message ID:
00311926
Vues:
28
>>>
>>>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.
>
>I haven't used for each much, but could it be done that way?
>
>For each listitem in olistbox
> * processing
>next
>
>Does that work? Or is there something like that?

FOR EACH is preferable where you may change the number of elements in the collection.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform