I have 2 buttons, and 4 labels, now the buttons work fine, and do what their supposed to, but as for the labels the stopwatch is supposed to work like it's supposed to (
Example I made in Javascript) once it passes 99 it's supposed to go and have 1 second on the second label, and so on as you saw from the web app I made, but instead the number keeps going higher like so - 326.0
Here's the code I have in Timer1_Timer
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
Timer1.Interval = 10
Label4.Caption = Val(Label4.Caption) + Val(1)
If Label4.Caption = 60 Then
Label3.Caption = Val(Label3.Caption) + Val(1)
Label2.Caption = "0"
If Label3.Caption = 60 Then
Label2.Caption = Val(Label3.Caption) + Val(1)
Label3.Caption = "0"
If Label2.Caption = 60 Then
Label1.Caption = Val(Label3.Caption) + Val(1)
Label1.Caption = "0"
End If
End If
End If
|
Can someone please help me, and tell me what I'm doing wrong???