What is the equivalent of SetLength using Oxygene? I’m trying to size an integer array.
var listIndexes: array of integer;
begin
setLength(listIndexes,5); // doesn't work
end;
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Bill, the function Setlength does not exist in Delphi-Prism (you can use the namespace ShineOn.Rtl from ShineOn wich have a partial implementation of the Setlength function).
In delphi prism you can try this
or
UPDATE
Also, you can write your own SetLength