Jump to content

Remy Lebeau

Members
  • Content Count

    2982
  • Joined

  • Last visited

  • Days Won

    134

Everything posted by Remy Lebeau

  1. Remy Lebeau

    VCL Support for Per Monitor v2 and GetSystemMetrics Coming in 10.3

    The VCL has a GetParentForm() function in the Vcl.Forms unit for this very purpose.
  2. 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);
×