Sign in Join
Wiki copytemporary

Local variables

Deutsch · English · Español · Suomi · Русский

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).

pascal
 procedure DoSomething; 
 var 
  x : Tsome_type;
 begin
  
 end;

Read More


From the Free Pascal wiki, page "Local variables", as it stood on 2020-02-19 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 1, last changed by WikiArchive .

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.