Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Global Variables in Report????
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00127794
Message ID:
00127802
Vues:
27
>Hi all,
>
>I have some local and global variables I'm using in a report.
>When I try to preview the report it gives me an error message. The local variables come from the method that calls opens the report.
>Is this normal?? or is there something I should do??

Yes, it´s normal; method variables cannot be seen outside the scope of the method. You can solve that

1. Use PUBLIC variables, and RELEASE them after the REPORT is done.

2. Use properties, and write
PUBLIC oCurrentForm
oCurrentForm = ThisForm
and in the report include oCurrentForm.YourProperty. After the REPORT, do
oCurrentForm = .NULL.
RELEASE oCurrentForm
HTH!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform