Signature (Visual Basic / VBA)
Public Function SleepBlocking( _
Optional ByVal vSeconds As Variant _
) As Boolean
Code Example
? Now : ? SleepBlocking(5) : ? Now
5/8/96 1:05:11 AM
True
5/8/96 1:05:16 AM
Parameters
| Parameter | Description |
|---|---|
| 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. |
Notes & Version History
| 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. |
| v1.3 Change | Removed 16-bit support from this function. |