基本ステートメント
ステートメントです。
if文
if (10 <= iIdx) or ((10 <= iMax) and (iMax <= 20)) then begin
end;
case文
case (iIdx) of
9..10:
3:
2:
1:
else
end;
for文
for iIdx := 1 to 10 do begin
end;
while文
while iIdx < 10 do begin
end;
ユーザ定義関数
function Averagte(iIdx,iMax: Integer): Real;
function TForm1.Averagte(iIdx,iMax: Integer): Real;
begin
end;
静的配列
最初からサイズが決まっている配列変数の宣言
strName: Array[0..99] of String;
動的配列
後からサイズが決まる配列変数の宣言
strName: Array of String;
実行時のサイズ割当
SetLength(strName, 100);
strName[0] := 'abc';