iOS Question iSQL Object - Module Scope

RichardN

Well-Known Member
Licensed User
Longtime User
Having declared......

B4X:
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 ?
 

RichardN

Well-Known Member
Licensed User
Longtime User
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
Top