A strange error when trying to get the 'handle' from a far Procedure lazarus / 62-General ---------------------------------------------------------------------- FlierMate · 2021-01-27 11:36 This is the error. I've never seen this kind of error in Pascal although I self-claimed as somewhat experienced programmer. QuoteError: Incompatible types: got "untyped" expected "" The code: 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 procedure ShowUsage: farbegin..........end; constructor TMyApp.Init;begin    PShowUsage:=ShowUsage;    .....     ....end; There is no declaractino of PShowUsage in the entire source file. Can someone know how to fix this error? ---------------------------------------------------------------------- PascalDragon · 2021-01-27 12:25 Quote from: FlierMate on January 27, 2021, 12:36:01 pmThere is no declaractino of PShowUsage in the entire source file. Is the source available publicly? ---------------------------------------------------------------------- FlierMate · 2021-01-27 12:29 Quote from: PascalDragon on January 27, 2021, 01:25:55 pmQuote from: FlierMate on January 27, 2021, 12:36:01 pmThere is no declaractino of PShowUsage in the entire source file. Is the source available publicly? Yes, Mark MLI uploaded it to GitHub. Please find the original post here: https://forum.lazarus.freepascal.org/index.php/topic,52452.msg38 6512.html#msg386512 There are a few errors need to fix before you would come to the abovesaid error. ---------------------------------------------------------------------- dseligo · 2021-01-27 12:34 Maybe PShowUsage is pointer to ShowUsage. Try this: 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 PShowUsage:=@ShowUsage; or 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 {$MODE Delphi} on the top. ---------------------------------------------------------------------- FlierMate · 2021-01-27 12:39 Quote from: dseligo on January 27, 2021, 01:34:58 pmMaybe PShowUsage is pointer to ShowUsage. Try this: 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 PShowUsage:=@ShowUsage; It is so simple, thanks for the quick solution. ---------------------------------------------------------------------- lucamar · 2021-01-27 12:47 Quote from: FlierMate on January 27, 2021, 12:36:01 pmThere is no declaractino of PShowUsage in the entire source file. It's declared in unit params (Params.pas) as: 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 var    PShowUsage: procedure; Note that FPC by default uses "fpc" mode, which requires the address operator to assign procedural variables, so either change the mode to "tp" using {$mode tp} or change that line (and any other similar to it) to: 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 PShowUsage := @ShowUsage; HTH! ---------------------------------------------------------------------- FlierMate · 2021-01-27 12:52 Quote from: lucamar on January 27, 2021, 01:47:54 pmQuote from: FlierMate on January 27, 2021, 12:36:01 pmThere is no declaractino of PShowUsage in the entire source file. It's declared in unit params (Params.pas) as: 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 var    PShowUsage: procedure; Note that FPC by default uses "fpc" mode, which requires the address operator to assign procedural variables, so either change the mode to "tp" using {$mode tp} or change that line (and any other similar to it) to: 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 PShowUsage := @ShowUsage; HTH! Thanks for pointing this out! I overlooked the unit files.  Your explanation helped. With this error fixed, I will still having a hard time to debug the runtime error, for example Runtime 215 when you try to create a new dialog.... Hmm.... ---------------------------------------------------------------------- FlierMate · 2021-01-27 13:07 May I know how to make this a community project? Me alone is incapable to debug it to make it usable in Win32 environment. Need more contributors.... ---------------------------------------------------------------------- lucamar · 2021-01-27 19:33 First of all and since Mark felt he didn't want to "polute" his but keep it intact for historical reasons, start with a new public repository (or a clone of Mark's) in SF or github or wherever. Once that is done I would make a post in "Third party" asking for contributions but only if you can make a commitment to engage as maintainer of the port for at least some years. Even then, don't expect to be swamped by request to be volunteer: very few people use FV nowadays and those few that do are, for the most part, maintainers of (very) old projects w/out a real need for this tool. ---------------------------------------------------------------------- FlierMate · 2021-01-27 20:38 Quote from: lucamar on January 27, 2021, 08:33:27 pmFirst of all and since Mark felt he didn't want to "polute" his but keep it intact for historical reasons, start with a new public repository (or a clone of Mark's) in SF or github or wherever. Once that is done I would make a post in "Third party" asking for contributions but only if you can make a commitment to engage as maintainer of the port for at least some years. Even then, don't expect to be swamped by request to be volunteer: very few people use FV nowadays and those few that do are, for the most part, maintainers of (very) old projects w/out a real need for this tool. Thank you very much for the kind intention and assistance offered. I think need to wait after I check whether this improved version of DialEdit+ is a working copy: https://github.com/joecare99/Public/tree/master/Projects/DialEdit.p