[fpc-pascal] Type-casting a class variable

Jean SUZINEAU jean.suzineau at wanadoo.fr
Wed May 1 19:43:52 CEST 2024


I didn't tested but I imagine it could be done with something like this ?

type
        TWindow_Class= class of TWindow;
begin
           ...
           (myClass as TWindow_Class).CreateNewWindow( ....);



More information about the fpc-pascal mailing list