Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reporting using array elements

Status
Not open for further replies.

acorbally

Programmer
Jan 9, 2001
65
US
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?
 
Acorbally,
public array arpt(65,2) solve your problem,
but more simple is print from table,
without futile conversion to array.
Comment: array declared from command window
are public, from program private !
Tesar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top