I can't figure out why, but when I try using the CustomSort procedure of any TStringList, I get this error during compile:
Error: Wrong number of parameters specified for call to "MySort"
Lazarus version 1.1
FPC version 2.6.1
SVN version 39572
Here some code:
function MySort(List: TStringList; Index1: integer; Index2: Integer): Integer;
begin
<my code here>
end;
called in my code with:
MyStringList.CustomSort(MySort);
What am I doing wrong?
I did see a similar post from last year thinking it had something to do with the Gernerics support, but there weren't any replies to that.
Thanks
Chris