P Paul Garcia Member Licensed User Longtime User Apr 10, 2017 #1 Good morning, I do not understand the functionality of the starter service. The starter service should be like this? Code: Sub Process_Globals Dim bd As SQL End Sub Sub Service_Create bd.Initialize(File.DirDefaultExternal,"mydatabase.bd", True) End Sub And the activity would be like this? Code: Sub MyFunction Starter.bd.ExecNonQuery("Create table myTable (column TEXT)") End Sub
Good morning, I do not understand the functionality of the starter service. The starter service should be like this? Code: Sub Process_Globals Dim bd As SQL End Sub Sub Service_Create bd.Initialize(File.DirDefaultExternal,"mydatabase.bd", True) End Sub And the activity would be like this? Code: Sub MyFunction Starter.bd.ExecNonQuery("Create table myTable (column TEXT)") End Sub
tigrot Well-Known Member Licensed User Longtime User Apr 10, 2017 #2 I use starter to keep persistent common data and object do initialize when needed. Never terminate it by code. Upvote 0
I use starter to keep persistent common data and object do initialize when needed. Never terminate it by code.
Erel B4X founder Staff member Licensed User Longtime User Apr 12, 2017 #3 Paul Garcia said: And the activity would be like this? Click to expand... Yes. Upvote 0