|
-
Sep 18th, 2000, 02:27 AM
#1
Thread Starter
Lively Member
Just paste this code
private sub command1_click()
dim intH as integer, intMin as integer, intSecs as integer
intH = 0
intMin = 0
intSecs = 0
MsgBox Format(intH & " : " & intMin & " : " & intSecs, "hh:mm:ss")
end sub
of course the message box shows 00:00:00
now change the value of intSecs to 60 and run the code
now the message box shows 0 :0 :60
Can anybody help me how do retain the format of hour and minutes to 00 i.e. I wan the result to
be 00:00:60 if the value of intSecs is 60. Can somebody help me why this the formatting is lost in the second case. urgent help needed
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
|