Variables |
Top Previous Next |
Variables
There is no need to declare variable types in script. Thus, you declare variable just using var directive and its name. There is no need to declare variables if scripter property OptionExplicit is set to false. In this case, variables are implicit declared.
Examples:
SCRIPT 1: procedure Msg; var S; begin S:='Hello world!'; ShowMessage(S); end;
SCRIPT 2: var A; begin A:=0; A:=A+1; end;
SCRIPT 3: var S; S:='Hello World!'; ShowMessage(S); |