Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Loop through all selected items in a listbox
Message
 
To
03/01/2000 16:17:47
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00311890
Message ID:
00312083
Views:
30
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform