[Gambas-user] Adding a form to a workspace, grideditor

Benoit Minisini gambas at ...1...
Wed Jun 11 11:56:45 CEST 2008


On mercredi 11 juin 2008, Ron wrote:
> Is this valid?
>
> ---
> PUBLIC SUB tbnDevices_Click()
>
>   DIM doc AS NEW FDevices
>
>   wrkMain.Show
>   wrkMain.Add(doc)
>
> END
> ---
> FDevices is a Form , like the test form from GridEditor
> wrkMain is my Workspace
>
> The problem is, FDevices contains the GridEditor demo code, and it runs
> ok if I open it from a menu item with
> FDevices.Show
>
> But if I open it by adding it to my workspace, it errors with:
> "Can't find a connection called 'devices'"
>
> it refers to the mysql connection Grideditor uses, my connection is
> called 'devices' and like I said it runs when I open it with .Show.
>
> All the code is in Form_Open()
> Am I doing something not allowed?
>
> Gambas 2.6 svn
>
> Regards,
> Ron the 2nd
>

I think the problem is in the GridEditor demo code, but I can't say more.

-- 
Benoit Minisini




More information about the User mailing list