>>My company purchased a VFP 5 software package. I have been tasked with trying to figure out why it runs so slowly. When I built the application it generated about 40 undefined errors due to array references//parameters. I know these errors don't hurt the execution but I like things clean. I decided to get rid of them by adding EXTERNAL ARRAY declarations where needed. I did this to the PRG and SCX files and got the number of errors down to 7.
>>
>>Now I'm trying to get rid of these errors in reports where the field control sources are array elements (don't know why they didn't just create a cursor). Where can I put the EXTERNAL ARRAY declaration in reports to get rid of the errors. I tried putting it in the On Entry expression for the report band, but that didn't do it.
>>
>>Thanks in advance,
>
>You can declare the array in the calling module or form. That will make it visible throughout the report.
Thanks Evan,
Now all I have have to do is find the calling module. That will be fun. It is a monster application that creates a 21 MB EXE.