Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Private chk1 As CheckBox
Private chk2 As CheckBox
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("Layout1")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub chkBox_CheckedChange(Checked As Boolean)
Dim chk As CheckBox = Sender
Log("Tag = "&chk.Tag&": "&Checked)
If Checked Then
If chk.Tag = "Check1" Then
chk2.Checked = False
End If
If chk.Tag = "Check2" Then
chk1.Checked = False
End If
Else
If chk.Tag = "Check1" Then
chk2.Checked = True
End If
If chk.Tag = "Check2" Then
chk1.Checked = True
End If
End If
End Sub