R RichardN Well-Known Member Licensed User Longtime User Jun 15, 2015 #1 Having declared...... Code: Copy Sub Process_Globals Public db As SQL End Sub Private Sub Application_Start (Nav As NavigationController) db.Initialize(File.DirLibrary ,"MyDb.sqlite",False) End Sub Despite being declared 'Public' the SQL object 'db' has no scope outside the main module. I can find no reference to this being true/false in the documentation. Is this correct ?
Having declared...... Code: Copy Sub Process_Globals Public db As SQL End Sub Private Sub Application_Start (Nav As NavigationController) db.Initialize(File.DirLibrary ,"MyDb.sqlite",False) End Sub Despite being declared 'Public' the SQL object 'db' has no scope outside the main module. I can find no reference to this being true/false in the documentation. Is this correct ?
Erel B4X founder Staff member Licensed User Longtime User Jun 16, 2015 #2 No. You should be able to access it from other modules. Code: Copy Main.db.ExecQuery(...) Upvote 0
R RichardN Well-Known Member Licensed User Longtime User Jun 16, 2015 #3 That's what I thought. I had a couple of other random errors but all was well after closing the IDE and restarting. Upvote 0
That's what I thought. I had a couple of other random errors but all was well after closing the IDE and restarting.