<-- Previous || Up || Next -->

Sleep Blocking Function
Basic Extensions Class

Public Function SleepBlocking( _
    Optional ByVal vSeconds As Variant _
    ) As Boolean

Pause for the specified number of seconds; see the details below.

Summary: This function does NOT block the Windows 95 nor Windows NT environments. This function uses the Windows KERNEL32 Sleep function to pause for the specified number of seconds. vSeconds can be as accurate as to 1 millisecond (.001 seconds) in this case.
    ? Now : ? SleepBlocking(5) : ? Now
    5/8/96 1:05:11 AM
    5/8/96 1:05:16 AM
See also:
    SleepNonBlocking Function
    Sleep Function (Windows KERNEL32 API)
    DoEvents Statement (Visual Basic)
vSeconds: The number of seconds for which the function should pause. Function returns False if vSeconds if Null or cannot be fixed up to a number that is between 0 and 2,147,483. Otherwise, the function pauses for the specified number of seconds then returns True.
v1.3 Change: Removed 16-bit support from this function.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.