Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Private Vars Declared in Init Scope
Message
 
 
To
16/12/2003 10:55:01
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00859506
Message ID:
00859514
Views:
12
Hy Tracy,

The private variables declared in a method are released at the end of the method. The only difference between LOCAL and PRIVATE variables in this case, that PRIVATE variables are visible in any called methods/programs.

>I thought all variables declared private in a form's init were supposed to be visible throughout the life of the form? Yet both variables created below do not exist after the init is exited and focus is on any object on the form.
>
>
>PRIVATE lvar1
>lvar1 = .T.
>
>DODEFAULT()
>
>PRIVATE lvar2
>lvar2 = .T.
>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform