Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FOR NEXT does not loop the last occurence
Message
 
To
02/10/1997 19:27:21
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00052963
Message ID:
00053157
Views:
28
>In the Init() of my grid class, I discovered a situation new tonight. When I saw that, I restarted Visual FoxPro but it didn't change anything.
>
>It goes like this:
>
>FOR lnCompteur=1 TO This.ColumnCount
>   MESSAGEBOX(STR(lnCompteur)+' '+STR(This.ColumnCount))
>   ...
>   MESSAGEBOX(STR(lnCompteur)+' '+STR(This.ColumnCount))
>NEXT
>
>I put a messagebox to show the FOR NEXT value and the number of maximum occurence. It goes like this:
>
>1 7
>2 7
>3 7
>4 7
>5 7
>6 7
>
>The 7th occurence is never looped. Isn't this weird?
Michel,

I just tested the same thing on a grid with 7 columns and I got all 7 poasses in the loop, of course I had nothing else in the loop except the messagebox call.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform