I've written a multi lap stopwatch. It uses a timer running 1 second ticks. Works well, untill.....
I change orientation.
Change V->H program resets, start and timer is 0.5 sec
Change H->V program restarts, timer is 0.25 sec.
I'm guessing it's generating an extra timer call or timer each restart.
Same error on PC emulator and on ZT180 2.2 tablet.
Help please !
Brian.
PS it's a lovely working environment, a bit slow, but enjoyable.
=====================
create first time:
Timer1.Initialize("Timer1",1000)
Timer1.Enabled = True
Sub Timer1_Tick
If flag1 Then
seconds1 = seconds1 + 1
E_Time.Text = FormatTime(seconds1)
End If
If flag2 Then
seconds2 = seconds2 + 1
E_Time2.Text = FormatTime(seconds2)
End If
End Sub
I change orientation.
Change V->H program resets, start and timer is 0.5 sec
Change H->V program restarts, timer is 0.25 sec.
I'm guessing it's generating an extra timer call or timer each restart.
Same error on PC emulator and on ZT180 2.2 tablet.
Help please !
Brian.
PS it's a lovely working environment, a bit slow, but enjoyable.
=====================
create first time:
Timer1.Initialize("Timer1",1000)
Timer1.Enabled = True
Sub Timer1_Tick
If flag1 Then
seconds1 = seconds1 + 1
E_Time.Text = FormatTime(seconds1)
End If
If flag2 Then
seconds2 = seconds2 + 1
E_Time2.Text = FormatTime(seconds2)
End If
End Sub