[Gambas-user] String to Form

Benoit Minisini gambas at ...1...
Thu Oct 16 13:23:28 CEST 2008


On jeudi 16 octobre 2008, Ron wrote:
> Silly thing I can't get my grip on, even after some coffee ;)
>
> I want to make the form to load on my workspace user configurable.
>
> So I have a cmbbox with all available Forms to load.
>
> I have a routine to place a form on the workspace, it expects a Form as
> param.
> and I have cmbForms.Text = "FControl" for example.
>
> How can I tell gambas it should use the string as a form name to open?
>
> It's now complaining about getting a string in instead of an Object.
>
> Often the small things take most of the time ;)
>
> Regards,
> Ron_2nd.
>

hForm = Object.New("FormName")

Regards,

-- 
Benoit Minisini




More information about the User mailing list