By putting the following function into visual basic 2008:
"Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)"
"Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)"
The time period will be calculated in Milliseconds (1 second = 1000 Milliseconds).
Example:
If you want to pause an instruction for 3 seconds
"sleep(3000)"
Hope this function will help you in your applications.
No comments:
Post a Comment