Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Undefined Array Error Message When Building EXEs
Message
 
To
10/02/1999 16:54:44
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00186239
Message ID:
00186247
Views:
21
Hi Mark,

Here's the problem:
The array expression:
MyArray(1)

looks exactly like the function call:
MyArray(1)

VFP thinks this is supposed to be a function. Fox will not determine that it is an array because you DIMENSION'ed in earlier in the code. If it could, there would be no reason for the EXTERNAL ARRAY directive that is needed in PRG's.

One way around, is to use EVAL() in the report expression:

EVAL("MyArray(1)")

Mark

>Here is my problem, hopefully it's clearly defined:
>
>I've created a project that contains a report.
>That report directly references arrays.
>
>Every time I build the project into an EXE I get error messages informing me that the arrays are undefined.
>
>Is there any way to reference arrays in a report contained in a project and be able to build an EXE without getting those annoying errors?!?!
>
>I don't think its "unusual" to use arrays in reports -- I really find it hard to believe that the project manager will ALWAYS report array references as errors - but that seems to be the case!
>
>Anyone know how to get around this??
>
>--Mark
"It hit an iceberg and it sank. Get over it."
Robert Ballard, dicoverer of the Titanic wreckage.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform