iOS Question iSQL Object - Module Scope

Discussion in 'iOS Questions' started by RichardN, Jun 15, 2015.

  1. RichardN

    RichardN Active Member Licensed User

    Having declared......

    Sub Process_Globals
    Public db As SQL
    End Sub

    Private Sub Application_Start (Nav As NavigationController)
    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 ?
  2. Erel

    Erel Administrator Staff Member Licensed User

    No. You should be able to access it from other modules.

  3. RichardN

    RichardN Active Member Licensed User

    That's what I thought. I had a couple of other random errors but all was well after closing the IDE and restarting.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice