by Per Tonny Berg (1 Submission)
Category: String Manipulation
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Wed 26th July 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Count elapsed time between two times in one line of code.
Label1.Caption = Time
End Sub
Private Sub Command2_Click()
Label2.Caption = Time
End Sub
Private Sub Command3_Click()
Form1.Caption = Format(TimeValue(Label2.Caption) - TimeValue _(Label1.Caption), "HH:MM:SS")
End Sub