Olly
2014-10-10 19:14:20
This has to be some record for the most messed up bug ever;
@nielsie95
e: If i set it like this, it works fine.
:confused:
@nielsie95
var
TBA: array of TBoxArray;
Res: TBoxArray;
begin
SetLength(TBA, 3);
TBA[0] := [[68, 84,116, 125], [117, 84, 165, 125], [166, 84, 214, 125], [215, 84, 263, 125], [264, 84, 310, 125]];
TBA[1] := [[48, 149, 99, 196], [100, 149, 151, 196], [152, 149, 203, 196], [204, 149, 255, 196], [256, 149, 307, 196], [308, 149, 309, 196]];
TBA[2] := [[25, 225, 81, 279], [82, 225, 138, 279], [139, 225, 195, 279], [196, 225, 252, 279], [253, 225, 307, 279]] ;
Res := [TBA[0][0],TBA[0][1],TBA[0][2],TBA[0][3],TBA[0][4],TBA[1][0],TBA[1][1],TBA[1][2],TBA[1][3],TBA[1][4],TBA[2][0],TBA[2][1],TBA[2][2],TBA[2][3],TBA[2][4]];
Writeln('I''m some messed up array ', High(Res));
Writeln('Let''s do what we just did.... exactly... again.');
Res := [TBA[0][0],TBA[0][1],TBA[0][2],TBA[0][3],TBA[0][4],TBA[1][0],TBA[1][1],TBA[1][2],TBA[1][3],TBA[1][4],TBA[2][0],TBA[2][1],TBA[2][2],TBA[2][3],TBA[2][4]];
Writeln('I''m... fine? ', High(Res));
end. Compiled successfully in 312 ms.
I'm some messed up array 280
Let's do what we just did.... exactly... again.
I'm... fine? 14e: If i set it like this, it works fine.
for i := 0 to 2 do
for j := 0 to 4 do
begin
SetLength(Res, Length(Res) + 1);
Res[High(Res)] := TBA[i][j];
end; :confused: