Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Should I upgrade to VFP7 now?
Message
De
08/10/2001 10:07:09
 
 
À
07/10/2001 21:39:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00565319
Message ID:
00565467
Vues:
19
>----b) Arrays must be coded in LOCAL statements separately from memvars coded wqith LOCAL statements. This was always the 'rule' but VFP6 allowed mixing them anyway.

Not true. You can mix scalars and arrays in LOCAL declarations, but you must omit the ARRAY keyword. IOW, this is legal:

LOCAL cString, nNum, aArray[5]

but this is not:

LOCAL cString, nNum, ARRAY aArray[5]

In previous versions, that second line created three scalars and an array. The third scalar was named "Array". IOW, this is another consequence of requiring commas rather than spaces between declarations.

Tamar
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform