Hi Tracy,
No, PRIVATE variables are visible only in procedures/methods where you created them and in all progs/methods called by the prog/method where you created PRIVATE variable (set aside the case when the called prog has the variables with the same name). When the prog/method that created PRIVATE variable finishes executing, it is automatically released. That's why in INIT() you need to assign your values to the form properties in order to keep them throughout the form's life.
>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.
>
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison