[Gambas-user] String to Form
Ron
ron at ...1740...
Thu Oct 16 14:08:28 CEST 2008
Benoit Minisini wrote:
> 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,
>
That was it, thanks!
More information about the User
mailing list