Jump to content
Registration disabled at the moment Read more... ×

Remy Lebeau

Members
  • Content Count

    3031
  • Joined

  • Last visited

  • Days Won

    138

Everything posted by Remy Lebeau

  1. I would probably take it a step further, to avoid repeatedly indexing into the array: var Idx: integer; Rec: ^TSomeRec; // [...] Idx := CountInMyArr; SetLength(MyArr, Idx + SomeDelta); Rec := @MyArr[Idx]; Rec.SomeField := SomeValue; // and repeated for each field in TSomeRec Inc(CountInMyArr);
×