VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

CPause (Class for pausing)

Jan Botha  (6 Submissions)   VB function enhancement   Visual Basic 3.0   Unknown Difficulty   Wed 3rd February 2021

This is a class that you can use to make your app pause for a few hours/minutes/seconds or milliseconds. This will work even if midnight occurrs while pausing! (Thus, this is midnight-compliant, just like my CStopwatch class I submitted earlier.)

Inputs
Function pPause(ByVal Number as Single, Optional Byval Unit as iConstants) Number: the number of units, specified in Unit, that you want to pause Unit: Contains one of the Following: iMillisec ( = 3) iSeconds ( = 0) iMinutes ( = 1) iHours ( = 2) NOTE: If Unit is omitted, Unit will equal iSeconds

Side Effects
Unfortunately, if you want to see if this can pause through midnight, you'll have to set your system time. Nothing serious. :)

Rate CPause (Class for pausing) (7(7 Vote))
CPause (Class for pausing).bas

CPause (Class for pausing) Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters