[Pas2js] Call a function from html
Mattias Gaertner
nc-gaertnma at netcologne.de
Thu Sep 5 09:03:15 CEST 2019
First of all: Please subscribe to this list:
https://lists.freepascal.org/cgi-bin/mailman/listinfo/pas2js
On Wed, 4 Sep 2019 11:25:57 +0200
Gabriele Cappelletto via Pas2js <pas2js at lists.freepascal.org> wrote:
>[...]
> I have another question. If I write a function not used in the
> program, the compiler does not compile it in the .js file, is there a
> way to force the compilation even if the function is not used?
Either disable this optimization (-OoRemoveNotUsedDeclarations) or use
it somewhere (you don't need to call it):
if @Btn1Click=nil then ;
Mattias
More information about the Pas2js
mailing list