User Tools

Site Tools


scope
no way to compare when less than two revisions

Differences

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


scope [2018/05/09 11:33] (current) – created wolfgangriedmann
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 11:33 by wolfgangriedmann