Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variable Scope
Message
From
15/12/2006 16:27:23
 
 
To
15/12/2006 16:21:11
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01178158
Message ID:
01178162
Views:
15
>Hi All,
>
>I am experiencing a variable out of scope problem. I create a variable from within th INIT of the report. I want to use this variable within the running report for a "Print When Expression is True" on a label.
>
>The variable is a Boolean value. I am limited to VFP7.
>
>What I find is this:
>
>LOCAL and PRIVATE both end in a "Variable XXXXXX not found." message box with an Ok and Help button.
>
>PUBLIC actually works.
>
>Question: Is anyone aware of another means for giving scope within the report other than using a PUBLIC variable.
>
>
>Thanks in advance,
>Larry

You can use LOCAL if it's declared outside the report:
Local lMyvar
lMyvar=.t.
report form myreport preview
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform