Protected
Syntax
Protected <variable> [,<variable>,...]
Description
Protected allows a variable to be accessed only in a procedure even if the same variable has been declared as global in the main program.
Example :
Global a a = 10 Procedure Change() Protected a a = 20 EndProcedure If OpenConsole() Change() PrintN(Str(a)) ; Will print 10, as the variable has been protected. Input() CloseConsole() EndIf