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:03:34
 
 
À
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:
00311904
Vues:
33
>>>
>>>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?

The problem of doing it that way is that you'll hit the end of the list before you've actually processed all the entries. The list will shrink by one for each deletion. It would be the same as running through _SCREEN.Forms and Releasing each on. You don't get them all!
Fred
Microsoft Visual FoxPro MVP

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

Click here to load this message in the networking platform