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 ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user