B4X:
Sub Activity_Create(FirstTime As Boolean)
If student.k1=0 Then
m1=0
Label1.Text="xx "
Else If student.k1=1 Then
m1=1
Label1.Text="ss "
Else If student.k1=2 Then
m1=2
Label1.Text="dd "
Else If student.k1=3 Then
m1=3
Label1.Text="ff "
Else If student.k1=4 Then
m1=4
Label1.Text="gg "
Else If student.k1=5 Then
m1=5
Label1.Text="hh "
Else If student.k1=6 Then
m1=6
Label1.Text="jj "
End If
End Sub
Sub Button1_Click
If m1=0 Then
StartActivity(k)
Else If m1=1 Then
StartActivity(k)
Else If m1=2 Then
StartActivity(k)
Else If m1=3 Then
StartActivity(k)
Else If m1=4 Then
StartActivity(k)
Else If m1=5 Then
StartActivity(k)
Else If m1=6 Then
StartActivity(k)
End If
End Sub
Last edited: