Declaring all variables as Protected in a Procedure.
Posted: Tue May 09, 2006 6:36 am
If there is a compiler directive declaring all variables as Protected in a Procedure, it would be easy to declare many variables as protected.
like this.
and something like "CompilerEnableDefine #PB_Compiler_Global"
any possibility, Fred?
like this.
Code: Select all
Global x = 10
Global z
Procedure test()
CompilerEnableDefine #PB_Compiler_Protected
x=100 ; it's protected
CompilerDisableDefine
z=100 ; it's global
EndProcedure
any possibility, Fred?
