Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Loop through all selected items in a listbox
Message
 
À
03/01/2000 16:17:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00311890
Message ID:
00312083
Vues:
29
Just to jump into this thread with a problem of my own....

Today I was writing essentially the same code
nTotList = thisform.lstOrders.Listcount
for n = nTotList to 1 skip -1
   ** process stuff
next

** Do more stuff
And the code skipped the entire for/next loop. I tried
a) hard coding the value of nTotList (it was correct)
b) changing the value of nTotList to 1 and 2

Finally I rewrote the code so I couldgo from n = 1 to nTotList. No problems.

I've repeated this on 2 different lists today. Any ideas? Obvious typos? Stupid errors?

TIA
Barbara

>But if you remove items in the middle (one of the givens) that order gets miessed up and you skip stuff, thats why Fred proposed running through backwards.
Barbara Paltiel, Paltiel Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform