>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!