Difference between revisions of "Local variables/es"
From Free Pascal wiki
Jump to navigationJump to searchm (Text replace - "delphi>" to "syntaxhighlight>") |
m (Fixed syntax highlighting; deleted category included in page template) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
Una [[Var/es|variable]] local se define en un [[Procedure|procedimiento]] o [[Function|función]], y únicamente pueden ser usadas en ese ámbito. | Una [[Var/es|variable]] local se define en un [[Procedure|procedimiento]] o [[Function|función]], y únicamente pueden ser usadas en ese ámbito. | ||
− | <syntaxhighlight> procedure HacerAlgo; | + | <syntaxhighlight lang=pascal> |
+ | procedure HacerAlgo; | ||
var x:type | var x:type | ||
begin | begin | ||
... | ... | ||
− | end;</syntaxhighlight> | + | end; |
+ | </syntaxhighlight> | ||
+ | |||
+ | == Leer Mas == | ||
+ | * [[Var]] | ||
+ | * [[Variables Globales]] |
Latest revision as of 02:45, 19 February 2020
│
Deutsch (de) │
English (en) │
español (es) │
suomi (fi) │
русский (ru) │
Una variable local se define en un procedimiento o función, y únicamente pueden ser usadas en ese ámbito.
procedure HacerAlgo;
var x:type
begin
...
end;