> I am using a program to run a SQL-Select statement to gather selected
> data.
> The selected data is then sent to a REPORT FORM. I am getting an error
> in the Project Manager similar to the following:
>
> Unknown LACOUNT - Undefined
>
> The LACOUNT is an array of summary statistics. How can I eleminate this
> error from being displayed? I don't know how to use the EXTERNAL ARRAY
> command from within a REPORT.
>
> Any ideas/solutions?
As a matter of good programming practice, I always "declare laCount(1)"
in the top of a program where I populate it with SELECT. This is
because I usually populate the array within a function, and not usually
the function that calls the report.
By declaring it at the top of the .PRG, it is scoped to the .PRG, and
everything else can see it.