
How to use progress bar with time?
Quote:
> Or tell me
> how exactly the elapsed time is returned and how to retrieve it's
> minutes and seconds? THanks so much!
II would recommend using this:
' ----
Dim byteMinutes As Byte
Dim byteSeconds As Byte
Dim byteTime As Single
byteTime = "547"
byteMinutes = Int(byteTime / 60)
byteSeconds = Int(byteTime Mod 60)
MsgBox byteMinutes & " minutes and " & byteSeconds & " seconds"
' ---
byteTime contains the number of Seconds, so you could
assign the progress bar value to this variable.
The variables "byteMinutes" and "byteSeconds" contain
the converted values, which you then could
use in your program to display the current time in a
user-friendly way.
Hope That Helps!
Philipp