Protected
DescriptionProtected <variable> [,<variable>,...]
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. Protected in its function is often known as 'Local' from other BASIC dialects.
The value of the local variable will be reinitialized at each procedure call. To avoid this, you can use the keyword Static, to separate global from local variables while keeping their values.Example:
Global a a = 10 Procedure Change() Protected a a = 20 EndProcedure Change() MessageRequester("Information", Str(a)) ; Will print 10, as the variable has been protected.