Bad Boy JH
2010-10-02 04:41:30
This just occoured to me, after scripting for quite a while…why do all these variable types, have the 'T' prefix? eg TPoint, TBox, TIntegerArray, TPlayer, TNPC…etc
2010-10-02 04:41:30
2010-10-02 04:49:34
program _Types;
type
TType = record
Str: string;
Int: integer;
Bool: boolean;
end;
TTypeArray = array of TType;
var
TypeArray: TTypeArray;
begin
SetArrayLength(TypeArray, 1);
with TypeArray[0] do
begin
Str := 'String';
Int := 0;
Bool := False;
WriteLn('TypeArray[0] := ['#39 + Str + #39', ' + IntToStr(Int) + ', ' + BoolToStr(Bool); + '];');
end;
end.
2010-10-02 08:28:11
2010-10-02 12:27:22
2010-10-02 13:58:13