Information générale
Catégorie:
Gestionnaire de rapports & Rapports
>>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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement