[Lazarus] Can I assign items in an array all at once in FreePascal?

Aradeonas aradeonas at operamail.com
Sat Feb 6 15:42:14 CET 2016


Hi, As question explained here
http://stackoverflow.com/questions/6493727/can-i-assign-items-in-an-array-all-at-once-in-delphi-pascal
and the easiest answer is :
> type
  TIntArray =arrayof integer;procedure TForm1.Button1Click(Sender:
  TObject);var MyArr: TIntArray;begin MyArr :=
  TIntArray.Create(10,20,30,40);end;

But problems are : Lazarus doesnt recognize Create for array but FPC
will compile it but it seems it doesnt work so I want to ask what should
I do for assign items in an array all at once in FreePascal?

Regards, Ara

-- 
http://www.fastmail.com - A fast, anti-spam email service.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160206/e7d43c05/attachment-0002.html>


More information about the Lazarus mailing list