Forum > Third party

Cross platform DirectoryWatcher

<< < (4/4)

constructor:

--- Quote from: r.lukasiak on May 12, 2022, 05:32:41 am ---when building, it's saying that OnFileEvent needs more parameters. On the demo app, the problem doesn't occur.
Any clue?

--- End quote ---

Hi,
I got Error: Wrong number of parameters specified for call to "OnFileEvent" when using
--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---{$mode objfpc}{$H+} and replacing it with
--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---{$mode Delphi}{$H+} fixed it.

marcov:
Assignment of procedure/method types requires an @ in objfpc and fpc modes.

If you change to tp or delphi mode, you have to remove or ifdef them

Navigation

[0] Message Index

[*] Previous page

Go to full version