Custom Array type



Custom Array type
Pas2JS pascal source code
type TMyArray = array [0 .. 5] of String; { main.pas } var v: TMyArray; i: Integer; Begin v[0] := '123'; for i := 1 to 5 do v[i] := Chr(i + Ord('A')); for i := Low(v) to High(v) do WriteLn(IntToStr(i) + ': ' + v[i]); { <<<<<<<<<<<< CONSOLE OUTPUTS >>>>>>>>>>>>>>>>>>> 0: 123 1: B 2: C 3: D 4: E 5: F }