xdarkshadowx
2013-03-17 17:52:08
Figured it out.
2013-03-17 17:52:08
2013-03-17 17:55:51
From: xdarkshadowx
setArrayLength(arr, count); isn't working for me, getting Error: Could not call proc at line 26
Please advise.
var
TPA: TPointArray;
begin
Writeln('Length of TPA is: ' + IntToStr(Length(TPA)) + '.');
SetArrayLength(TPA, 10);
Writeln('Length of TPA is: ' + IntToStr(Length(TPA)) + '.');
SetArrayLength(TPA, 0);
Writeln('Length of TPA is: ' + IntToStr(Length(TPA)) + '.');
end.
2013-03-17 17:57:53
2013-03-17 18:16:34
From: xdarkshadowx
I had accidentally defined the array to a set length. Which was making it imposible to change the length.