Recent

Author Topic: Sort Comparer function  (Read 1282 times)

jcmontherock

  • Full Member
  • ***
  • Posts: 136
Re: Sort Comparer function
« Reply #15 on: August 05, 2022, 09:26:54 pm »
How do you pass to a new record without getmem/freemem or new/dispose and save address of each in a TList ?

MarkMLl

  • Hero Member
  • *****
  • Posts: 4676
Re: Sort Comparer function
« Reply #16 on: August 05, 2022, 10:30:38 pm »
Use a class instead of a record, create it (either with parameters defining the content or by setting them via properties) and then pass that to the list's add method.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

 

TinyPortal © 2005-2018