VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Count elapsed time between two times in one line of code.

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.

Rate 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



Download this snippet    Add to My Saved Code

Count elapsed time between two times in one line of code. Comments

No comments have been posted about Count elapsed time between two times in one line of code.. Why not be the first to post a comment about Count elapsed time between two times in one line of code..

Post your comment

Subject:
Message:
0/1000 characters