Pointer to function of object example (SOLVED) lazarus / 21-General ---------------------------------------------------------------------- Dzandaa · 2025-01-31 17:33 Hi for a procedure, we can define a type like: type   TMyProc = procedure(i: Uint16;b: Uint8) of object; but is it possible for a function and how? A little simple example welcome for function test(i: UInt16; b: UInt8): boolean; Thank you. B-> ---------------------------------------------------------------------- Dzandaa · 2025-01-31 17:44 Hi, Sorry, I had the answer, the error was somewhere else B-> ---------------------------------------------------------------------- ackarwow · 2025-02-03 21:36 Quote from: Dzandaa on January 31, 2025, 06:44:31 pmHi, Sorry, I had the answer, the error was somewhere else B-> Hi @Dzandaa Of course, if you want to use function types you can declare them for example in this way: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i type  TMyFunc = function(i: UInt16; b: UInt8): boolean of object;