Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report error
Message
From
19/04/2006 20:02:31
 
 
To
19/04/2006 19:46:24
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Miscellaneous
Thread ID:
01114805
Message ID:
01114818
Views:
18
>>I have a simple prg that is used to print the structure of the currently open table, similar to LIST STRU TO PRINT but with more detail and better formatting. The routine declares a public array (myarray) which contains some of the data for the report. The report contains fields in the page header which reference the myarray(1) thru myarray(6). This has always worked fine until today when I tried to print a table structure that required 2 pages. The first page of the report comes up in the preview just fine, but when I click the VCR button to view the second page, it produces an error that says "myarray.prg does not exist". I can't for the life of me figure out why the previewer thinks it needs a program named myarray.
>>
>>Any insights here?
>>
>>Thanks
>
>Just a SWAG
>
>This is exactly the behavior to be expected when an array in no longer visible - Fox thinks it is looking for a function because it sees the name() syntax. Did something in the Page Footer cause myArray to go out of scope?

Rich -

Your question provided the clue I needed. It wasn't in the page footer but in the prg. The recent move to reportbehavior = 90 required a nowait at the end of the report form line. So it blew right on by and released the array while the preview was still visible. I've got it solved now. Thanks for the hint.

- Don
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform