User Tools

Site Tools


scope

Differences

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

Link to this comparison view

scope [2018/05/09 13:33] (current)
wolfgangriedmann created
Line 1: Line 1:
 +====== begin scope .... end scope ======
 +
 +The ''​begin scope''​ .... ''​end scope''​ statement let you restrict the variable visibility to a defined part of your program.
 +
 +<​code>​begin scope
 +  local cVar as string
 +
 +  cVar := "Hello X#"
 +  System.Console.WriteLine( cVar )
 +
 +end scope
 +
 +System.Console.WriteLine( cVar )   // compile error here</​code>​
 +
  
scope.txt ยท Last modified: 2018/05/09 13:33 by wolfgangriedmann