Mike Lewis
Programmer
Just came up against this interesting problem.
I have a form that creates an array and fills it with six lines of data. The form then calls a report, which references the array. To ensure that the array stays in scope while the report is running, I have declared it as PRIVATE.
This works fine when running in the DE. But when I build the app, I see compilation errors saying that the array cannot be found.
No problem ... just add an EXTERNAL ARRAY to tell the project not to try to resolve the reference.
My question is: Where do I put the EXTERNAL ARRAY? It needs to be placed in the file that references the array, which in this case is the report. But how can you place a compile-time command in a report? Whereabout would you place it?
In fact, the report runs OK, despite the compilation errors, so it's not a big problem. It's just that I'd prefer not to see any compilation errors if possible. I know I can get round the problem by using separate variables in place of an array, but it would be nice to avoid having to do that.
Any ideas would be appriciated.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
My Visual FoxPro site: www.ml-consult.co.uk
I have a form that creates an array and fills it with six lines of data. The form then calls a report, which references the array. To ensure that the array stays in scope while the report is running, I have declared it as PRIVATE.
This works fine when running in the DE. But when I build the app, I see compilation errors saying that the array cannot be found.
No problem ... just add an EXTERNAL ARRAY to tell the project not to try to resolve the reference.
My question is: Where do I put the EXTERNAL ARRAY? It needs to be placed in the file that references the array, which in this case is the report. But how can you place a compile-time command in a report? Whereabout would you place it?
In fact, the report runs OK, despite the compilation errors, so it's not a big problem. It's just that I'd prefer not to see any compilation errors if possible. I know I can get round the problem by using separate variables in place of an array, but it would be nice to avoid having to do that.
Any ideas would be appriciated.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
My Visual FoxPro site: www.ml-consult.co.uk