I'm trying to use a starter module to declare and initialize process globals and initialize them in the starter module like this --
yet in the main module where I have
I get a "undeclared timer1 ... " message.
How do I get the starter globals recognized in the main module?
B4X:
Sub Process_Globals
Public Timer1 As Timer
End Sub
Sub Service_Create
Timer1.Initialize("Timer1",2000)
Timer1.Enabled=True
End Sub
yet in the main module where I have
B4X:
Sub Timer1_Tick
Msgbox("Times Up","")
Timer1.Enabled=False
End Sub
I get a "undeclared timer1 ... " message.
How do I get the starter globals recognized in the main module?