danrox2004
2007-04-12 21:02:30
This is very usefull… especially when debugging scripts with coordinates.. It writes in anything, so there is no need to do inttostr or booltostr.
To Use:
It takes an array so put it in square brackets, seperated by comas. For example:
Oops the title was supposed to be Write, not Writeln..
procedure Write(Variants: Array of Variant);
var
i: integer;
Str: String;
begin
Str := '';
for i := 0 to (getarraylength(Variants) - 1) do
begin
Str := Str + Variants[i];
end
Writeln(Str);
end;To Use:
It takes an array so put it in square brackets, seperated by comas. For example:
Write(['hello ', 54, ' Sup?', n, ' fjdksf ', True]);Oops the title was supposed to be Write, not Writeln..