[Gambas-user] How to load a Component with Component.Load
Benoit Minisini
gambas at ...1...
Sun Apr 11 23:06:29 CEST 2004
On Sunday 11 April 2004 22:43, Charlie Reinl wrote:
> Salut,
>
> Did you try Component.Load("gb.qt") ?
>
> Like you can see on snpshot23.jpg , I tried to do so.
> But AS WHAT ?
> I tried : AS myOne, AS Components, AS Component ,AS NEW Components ,AS
> NEW myOne ,AS NEW Component allways the MsgBox said 'Missing AAS at line
> 3 in FMain.class'
>
> So how is the syntax for ' Component.Load("gb.qt") ' ?
>
> Amicalement
> Charlie
Component.Load() is a method of the Component class. It is not a declaration!
You must insert it in your code, and the component will be loaded at the time
the method is called.
Regards,
--
Benoit Minisini
mailto:gambas at ...1...
More information about the User
mailing list