VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

TimeDelay

Mitch Mooney  (1 Submission)   Miscellaneous   Visual Basic 3.0   Unknown Difficulty   Wed 3rd February 2021

TimeDelay fuction is good for when you want to time out a loop, in milliseconds.
Does'nt use a timer control, Uses simple api declare.

Inputs
Delay as Long, milliseconds

Assumes
Create a module with the following api declare and function Usage can be Do FuncThatRetunsTrue MoreCode EctEct Loop until ( FuncThatRetunsTrue=True) or (TimeDelay(60000)=True)

Returns
TimeDelay as boolean, turns turn if time reached,else false

API Declarations
Declare Function GetTickCount& Lib "kernel32" ()

Rate TimeDelay (38(38 Vote))
TimeDelay.bas

TimeDelay Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters