>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.