Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Should I upgrade to VFP7 now?
Message
From
08/10/2001 10:07:09
 
 
To
07/10/2001 21:39:21
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00565319
Message ID:
00565467
Views:
18
>----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
Previous
Reply
Map
View

Click here to load this message in the networking platform