This code used to work (1.5)... I'm not sure what changed (and it certainly could be me)...
The goal is that each time I click on the step button, the value of Stepper would change from .01 to .001 (and back)....
But now, it always stays on .01 and never changes....
Any thoughts or suggestions would be greatly appreciated.
Gary M
B4X:
Sub Process_Globals
End Sub
Sub Globals
Dim Label1 As Label
Dim Stepper As Float
End Sub
Sub Activity_Create(FirstTime As Boolean)
activity.LoadLayout("1")
Stepper = .01
End Sub
Sub btnStep_Click
If Stepper = .01 Then
Stepper = .001
Else
Stepper = .01
End If
label1.Text = Stepper
End Sub
The goal is that each time I click on the step button, the value of Stepper would change from .01 to .001 (and back)....
But now, it always stays on .01 and never changes....
Any thoughts or suggestions would be greatly appreciated.
Gary M