[Lazarus] Pas2Js and component binding

Marcello markbass72 at zoho.com
Tue May 24 09:41:50 CEST 2022


Il 24/05/22 09:30, Michael Van Canneyt ha scritto:
> So, why the bind is not persistent and I need to bind again before use 
> a component in OnClick event?

>
> Normally the bind should be persistent. I use the described technique 
> since several years meanwhile.
>
> Please check if your program code contains an Application.Free after 
> the Application.Run.
> If it does, remove it.
>
> Earlier versions of Lazarus generated this statement erroneously when 
> using
> the 'new web application' wizard.
>
That’s the problem.
Application.Free removed, now works perfectly!

I'll report this solution in the forum.

thanks
nomorelogic




More information about the lazarus mailing list