>----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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement