Does this have any practical use? Should it be documented?
Sub Message_Received
Starter.SQL.DoSomething 'not cross platform
Dim sql As SQL = B4XPages.GlobalContext 'cross platform
sql.DoSomething
The last paragraph of post#1 of that link makes mention of it.does not actually mention GlobalContext
In fact that page talks about B4XPages.B4XGlobalContext not B4XPages.GlobalContext.The last paragraph of post#1 of that link makes mention of it.
Fixed.In fact that page talks about B4XPages.B4XGlobalContext not B4XPages.GlobalContext.
That's true. It can hold whatever you like. It does make sense to initialize that object in Service_Create of the starter service. This way it will be available in all cases.I note also it talks about initializing it in Service_Create of the starter service, but in fact B4XPages.GlobalContext can hold standard variables with being initialized.