Local variables

From Lazarus wiki
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Deutsch (de) English (en) español (es) suomi (fi) русский (ru)

A local variable is defined inside a Procedure, Function, Method or the implementation section of a Unit and is only accessible from there. It is said to have local scope and cannot be accessed from outside (i.e. by another outside procedure, function or unit).

 procedure DoSomething; 
 var 
  x : Tsome_type;
 begin
  
 end;

Read More