I am using FoxPro 2.6a for Windows and have used the command:
copy to array arpt
I now want to print a report using the following elements from the array:
arpt(2,10)
arpt(2,11)
etc.
I am finding problems when I build. I get an error stating "unable to find unknown arpt". If I comment out arpt array references in the report, I build fine, if I leave them in I get the error? What is the fix? Can't you use array elements in reports? Am I needing to declare it somewhere else that I have not thought of? I am using a prg to do the "copy to array arpt" and right after I use a "report form ... preview". If I comment out the report's references to the array, then compile, begin debug and then put a breakpoint right before the "report form statement" and then modify the report to uncomment the elements, and then in the command line do a "report form....preview" it displays them just fine. Any suggestions?
copy to array arpt
I now want to print a report using the following elements from the array:
arpt(2,10)
arpt(2,11)
etc.
I am finding problems when I build. I get an error stating "unable to find unknown arpt". If I comment out arpt array references in the report, I build fine, if I leave them in I get the error? What is the fix? Can't you use array elements in reports? Am I needing to declare it somewhere else that I have not thought of? I am using a prg to do the "copy to array arpt" and right after I use a "report form ... preview". If I comment out the report's references to the array, then compile, begin debug and then put a breakpoint right before the "report form statement" and then modify the report to uncomment the elements, and then in the command line do a "report form....preview" it displays them just fine. Any suggestions?