Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with array elements as loop counters
Message
 
 
À
30/08/2003 10:29:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00824765
Message ID:
00824875
Vues:
24
Hi Oscar,

It's documentation error. You cannot use an array element in the FOR loop and I'm not sure why would you need that.

>Hello
>Try this in Vfp7 or 8:
>DIMENSION aInd[10]
>FOR aInd[1] = 1 TO 20
>	? aInd[1]
>ENDFOR
>
>I get "aInd is not a variable"
>
>However, this should work according to FOR..ENDFOR help:
>"Var
>Specifies a variable or an array element that acts as the counter. The variable or array element doesn't have to exist before FOR ... ENDFOR is executed"
>
>Am I missing something?
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform