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

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to