>Can public variables ever go out of scope? I know it's not good "form" in an OOP language, but sometimes they are VERY handy and make my life easier. I have one form that tries to check the value of this variable, but in that form it doesn't exist for some reason. Every other form that checks this variable sees it just fine. Any ideas???
Besides the var scoping with the same name the other way a public var get's hidden is if you pass it by reference into a procedure or function.
For example
RELEASE gc_test
public gc_test
gc_test = "C"
DO test WITH gc_test
PROCEDURE test
PARAMETER pc_test
? TYPE('gc_test')
RETURN
Charles
"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers