Just trying to use the tdataiteratormethod of tfpdatahashtable (**://www.freepascal.org/docs-html/fcl/contnrs/tdataiteratormethod.html). How would I have to declare a corresponding procedure to use it in iteration?
If a just declare a procedure with the same parameters as the delivered prototype and try to use it I get a compiler error in the respective call with iterate: "Error: Incompatible types: got "<address of procedure(Pointer,const AnsiString,var Boolean) is nested;Register>" expected "<procedure variable type of procedure(Pointer,const AnsiString,var Boolean) of object;Register>"
if I try to add "of object" at end procedure header, I get a syntax error: "Fatal: Syntax error, ";" expected but "OF" found".
What would be the correct way to declare and use the callback procedure?