Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report error vfp9, OK in vfp7
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01090163
Message ID:
01090327
Views:
10
>Hi
>In the Report designer am building a cursor in the IDE.properties.OpenTables method, and then when running the report use the cursor as input.
>In the process of doing that I build an array. The following statement works fine in vfp7, but throws the 1652 error (Invalid use of vfp function as an array) in vfp9.1.
>
>DIMENSION aDoc[m.count, 16]
>
>aDoc is not being used as a function as far as I know.
>All help appreciated.
>Bill Wright

Possibly geting confused with the ADOCSTATE() function in VFP9 (and VFP8) that wasn't in VFP7.

[Update]
Most definitely the problem. You'll have to change your array to ADOCS or something other than the first 4 chars of a valid function name.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform