|
-
November 19th, 2001, 08:19 PM
#1
StopWatch
The Following code is given in a major manual as code for a Stopwatch.
Private Sub Command1_Click( )
StartTime = Now ' both date and time
Timer1.Enabeled = True
End Sub
Private Sub Command2_Click( )
Timer1.Enabeled = False
End Sub
Sub Timer1_Timer( )
Label1.Caption = Format$(Now StartTime,"hh:mm:ss")
End Sub
This doesn't work for two reasons.
1 StartTime = Now brings forth Both date and time
2 A mathematical operation is being performed on a string
I have programmed my way around the problem but would like to know if anyone has a simple way to accomplish the above task.
73 RSH
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|