Figured it out.
Printable View
Figured it out.
Is there any more context to this error you receive?
Here's an example of using SetArrayLength:
Simba Code: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.
I had accidentally defined the array to a set length. Which was making it imposible to change the length.