Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim t As Thread
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
End Sub
Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
t.Initialise("t")
Dim MyMap As Map
MyMap.Initialize
MyMap.Put("a", "b")
t.Start(Me, "Async_SetMap", Array As Object(MyMap))
End If
End Sub
Private Sub Async_SetMap(MapObj As Object)
Dim Map1 As Map
Map1 = MapObj
'Add some Data to the map
Map1.Put("A Key", "Some Data")
Log("Different thread: " & Map1)
End Sub