Difference between revisions of "Local variables"

From Free Pascal wiki
Jump to navigationJump to search
m
Line 1: Line 1:
 
{{Local variables}}
 
{{Local variables}}
  
a local variable is defined in a [[Procedure|procedure]], [[Function|function]] or [[Method|method]] and only accessible from there.
+
A local variable is defined inside a [[Procedure|procedure]], [[Function|function]] or [[Method|method]] and is only accessible from there.
 
  procedure DoSomething;  
 
  procedure DoSomething;  
 
  var x:type
 
  var x:type

Revision as of 13:51, 10 March 2015

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

A local variable is defined inside a procedure, function or method and is only accessible from there.

procedure DoSomething; 
var x:type
begin
end