Since most variables are preferably declared in the Starter Service module, how about create an alias attribute for the ‘Starter’ module to tidy up the code. For instance: in the starter we will have:
And in the activity module instead of:
We will have this:
B4X:
#Alias: S 'or whatever user wants
B4X:
If Starter.SQL1.IsInitialized = False Then
Starter.SQL1.Initialize(Starter.SQLDBPath, Starter.SQLDBName, True)
End If
We will have this:
B4X:
If S.SQL1.IsInitialized = False Then
S.SQL1.Initialize(S.SQLDBPath, S.SQLDBName, True)
End If