Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FOR NEXT does not loop the last occurence
Message
 
À
02/10/1997 19:27:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00052963
Message ID:
00053157
Vues:
33
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform