[Pas2js] Integrate the DFM2PAS serialization in pas2js compiler.

warleyalex warleyalex at yahoo.com.br
Tue Mar 6 02:27:57 CET 2018


Mattias Gaertner wrote
> initialization
>  RegisterForm({$I %FILE%}, TForm1);
> 
> Why the RegisterForm in the initialization?

I'll insert this RegisterForm in the initialization section of all form
units in the project and register each form in a "roll-your-own" registry
with their name and class and have the registry provide the methods to
iterate over the registered forms. It can be used in the procedure
GotoForm(Const aFormName: String), for instance:
gotoForm('Form2');
gotoForm('Form4');




--
Sent from: http://pas2js.38893.n8.nabble.com/


More information about the Pas2js mailing list