Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Report error
Message
De
19/04/2006 20:02:31
 
 
À
19/04/2006 19:46:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Divers
Thread ID:
01114805
Message ID:
01114818
Vues:
17
>>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
Fil
Voir

Click here to load this message in the networking platform