Local variables

From Free Pascal wiki
Revision as of 13:57, 10 March 2015 by Eny (talk | contribs)
Jump to navigationJump to search

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

A local variable is defined inside a Procedure, Function, Method or 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 or function).

procedure DoSomething; 
var x:type
begin
end