Hello Med. Maybe with this ?:
initialisation begin ar1[1]:=(frmInfotiersfo.tdbintegeredit1); end; Fre;D ________________________________ De : mohamed hamza <[email protected]> Envoyé : samedi 29 juillet 2023 10:41 À : General list for MSEide+MSEgui <[email protected]> Objet : [MSEide-MSEgui-talk] INITIALIZATION SECTION Hello , I am wondering why object of a tform is not visible to initialisation section? The folowing piece of code gives an error ? type tfrmInfotiersfo = class(tfrmbasePagefo) tdbwidgetgrid1: tdbwidgetgrid; tdbdatetimeedit1: tdbdatetimeedit; tdbintegeredit1: tdbintegeredit; .... .... var frmInfotiersfo: tfrmInfotiersfo; aR1:array[1..2] of tcustomdataedit; initialisation begin ar1[1]:=(tdbintegeredit1); end; end. I got the error frmInfotiers.pas(134,23) Error: Identifier not found "tdbintegeredit1" ? why tdbintegeredit1 is not visible to the init section Best Regards. Med
_______________________________________________ mseide-msegui-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

