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

Ron ron at ...1740...
Wed Jun 11 01:25:35 CEST 2008


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




More information about the User mailing list