Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Global Variables in Report????
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00127794
Message ID:
00127802
Views:
30
>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!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform