You are on page 1of 2

Dim st As Variant, ent As Variant, elt As Variant, a As Variant, b As Variant, c As

Variant, d As Variant
-----------------------------------------------------------------------------------
-------------------------------
Private Sub Command1_Click()
a = Time
b = Time
Timer2.Enabled = True
End Sub
-----------------------------------------------------------------------------------
-------------------------------
Private Sub Command2_Click()
Timer2.Enabled = False
d = c
End Sub
-----------------------------------------------------------------------------------
-------------------------------
Private Sub Command3_Click()
st = Time
Label8.Caption = Format(st, "hh:mm:ss")
End Sub
-----------------------------------------------------------------------------------
-------------------------------
Private Sub Command4_Click()
ent = Time
Label9.Caption = Format(ent, "hh:mm:ss")
End Sub
-----------------------------------------------------------------------------------
-------------------------------
Private Sub Command5_Click()
elt = ent - st
Label10.Caption = Format(elt, "hh:mm:ss")
End Sub
-----------------------------------------------------------------------------------
-------------------------------
Private Sub Command6_Click()
End
End Sub
-----------------------------------------------------------------------------------
-------------------------------
Private Sub Command7_Click()
Label2.Caption = "00:00:00"
Label8.Caption = ""
Label9.Caption = ""
Label10.Caption = ""
Timer2.Enabled = False
a = Time
b = Time
d = b - a
End Sub
-----------------------------------------------------------------------------------
-------------------------------
Private Sub Form_Load()
Timer1.Interval = 1000
Timer2.Interval = 1000
Timer2.Enabled = False
a = Time
b = Time
d = b - a
Label2.Caption = "00:00:00"
End Sub
-----------------------------------------------------------------------------------
-------------------------------
Private Sub Timer1_Timer()
Label7.Caption = Format(Time, "hh:mm:ss")
End Sub
-----------------------------------------------------------------------------------
-------------------------------
Private Sub Timer2_Timer()
c = b - a
c = c + d
Label2.Caption = Format(c, "hh:mm:ss")
b = Time
End Sub
-----------------------------------------------------------------------------------
-------------------------------

You might also like