>Declaring isn't enough - the variable must also be initialised, as in:
>
>
>PUBLIC glVar
>glVar=.f.
>
Hi Matt,
I agree that it's a good practice to initialize variables explicitly but the PUBLIC variables are initialized with .F. when they are declared. The same as LOCAL variables. I think you confused them with the PRIVATE statement. It doesn't create any variables but hides the once listed in it if they already exist up the calling chain.
--sb--