#1 mORMot 1 » TDynArray for OS-X? » 2015-09-23 17:20:41

WCantrall
Replies: 1

Is there anyway to use TDynArray in OS-X?
The following code works well for me to persist arrays into a zipfile in windows:

begin
     aMarkDynArray.Init(TypeInfo(RMarks),myRMarks);
     SetLength(myRMarks,RowPoints.Count);
     for i := 0 to RowPoints.Count - 1 do
          myRMarks[i]:=RowPoints.Marks[i];
          MyStream.Clear;
         aMarkDynArray.SaveToStream(MyStream);
         MyStream.Position:=0;
         ZipFile.add (MyStream, Chartname+'.marks');  //row font info
end;

or is there a cross-platform way to accomplish the same thing?

Board footer

Powered by FluxBB