Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DO FORM......NAME...LINKED
Message
From
29/05/1998 14:39:36
 
 
To
29/05/1998 14:37:28
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00102548
Message ID:
00103195
Views:
37
>>I use it as long as I develop in VFP (and FP2.x). LOCAL variable is visible for its own snippet and all snippets called from there.
>>
>>>Ed,
>>>
>>>Have you tried that? LOCAL shouldn't be visible inside the report. Only private and public. I suggested public because private to a method might still go out of scope in a REPORT NOWAIT setup.
>>>
>>>>Yes I meant something like this, moreover, the example doesn't require PUBLIC, it can be LOCAL variable.
>
>This is odd Ed. According to the Help, LOCAL variables are visible only in the procedure or function they are declared in, not in those above or below the procedure. PRIVATE variables being visible in "lower" method calls. Since this works for you, can we conclude that a report run from a method is "part of" or "contained in" the method?

Do you believe in everything what is written in Help :). Following construction always worked for me:
Local cHeader
cHeader=....
Report Form .... && using cHeader inside
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform