User Tools

Site Tools


scope

begin scope .... end scope

The begin scope …. end scope statement let you restrict the variable visibility to a defined part of your program.

begin scope
  local cVar as string
		
  cVar := "Hello X#"
  System.Console.WriteLine( cVar )
		
end scope
		
System.Console.WriteLine( cVar )   // compile error here
scope.txt · Last modified: 2018/05/09 13:33 by wolfgangriedmann