[fpc-pascal] Delphi-FPC difference in handling TList

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Oct 20 08:37:54 CEST 2015


On Tue, 20 Oct 2015 08:31:57 +0200
Bo Berglund <bo.berglund at gmail.com> wrote:

> I am porting a Delphi class to FPC and I ran into a problem concerning
> TList:
> 
> FCommands.Sort(CommandCompare);
> 
> This generates an error:
> Error: Wrong number of parameters specified for call to
> "CommandCompare"
> 
> This call works just fine in Delphi and I have no clue as to why it
> happens in FPC.

http://wiki.freepascal.org/FPC_message:_Wrong_number_of_parameters_specified

Mattias



More information about the fpc-pascal mailing list