Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
variables [2019/07/29 09:25]
neils [Variable definition]
variables [2019/08/01 12:20] (current)
neils [Scope]
Line 106: Line 106:
 Variables, constants and labels can be global or local. Variables, constants and labels can be global or local.
  
-Any variable or constant declared using a ''​CONST'',​ ''​LET'',​ ''​DIM''​ or ''​DATA''​ statement outside a ''​PROC ... ENDPROC''​ pair is considered to be a global variable and can only be accessed from the global scope. Global variables ​are accessible ​from within a procedure by using the global modifier (''​\''​).+Any variable or constant declared using a ''​CONST'',​ ''​LET'',​ ''​DIM''​ or ''​DATA''​ statement outside a ''​PROC ... ENDPROC''​ pair is considered to be a global variable and are only accessible within a procedure by using the global modifier (''​\''​).
  
 Any variable or constant declared using a ''​CONST'',​ ''​LET'',​ ''​DIM''​ or ''​DATA''​ statement inside a ''​PROC ... ENDPROC''​ pair, including the procedure'​s parameters, is considered to be a local variable and can only be accessed within that procedure. Any variable or constant declared using a ''​CONST'',​ ''​LET'',​ ''​DIM''​ or ''​DATA''​ statement inside a ''​PROC ... ENDPROC''​ pair, including the procedure'​s parameters, is considered to be a local variable and can only be accessed within that procedure.