function compare(bla bla): int;
I use TList.Sort(compare) to sort something in my component, but I need to somehow pass information to the compare function, and this gives some troubles.
I first used a global variable, but because I have two components on the same from this gives a big error when one of the components are destroyed.
I would include the compare function in the procedure where I use sort, but this don't work
I also would declare the function as
But then I can't use the function.
Help me on this one