'Activity module
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
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.
Dim lbl_0 As Label
Dim lbl_1 As Label
Dim lbl_2 As Label
Dim Button1 As Button
Dim lbl() As Label
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout(1)
lbl = Array As Label(lbl_0, lbl_1, lbl_2)
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Button1_Click
'Dim lbl As String
Dim i As Int
Dim t As Object
For i = 0 To 2
lbl(i).text = "Label" & i
Next
End Sub