'Code module
'Subs in this code module will be accessible from all modules.
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Private oSQL As SQL
End Sub
Public Sub GetSQL() As SQL
Dim rSQL As SQL
Try
If oSQL=Null OR oSQL.IsInitialized=False Then
If File.Exists(File.DirInternal,"database.db") = False Then
File.Copy(File.DirAssets,"database.db",File.DirInternal,"database.db")
End If
oSQL.Initialize(File.DirInternal, "database.db", False)
End If
rSQL=oSQL
Catch
'doing stuff
End Try
Return rSQL
End Sub