Kbase P24590: How to Call WIN32 API Function: Sleep
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  16/10/2008 |
|
Status: Unverified
GOAL:
How to Call WIN32 API Function: Sleep
GOAL:
How to pause in a batch job without using PAUSE?
FACT(s) (Environment):
Windows NT 32 Intel/Windows 2000
FIX:
The following sample code shows how to call the Win32 API function
called Sleep. This function suspends execution of the current
thread (i.e. Progress) for a specified interval.
PROCEDURE Sleep EXTERNAL "KERNEL32.DLL":
DEFINE INPUT PARAMETER intMilliseconds AS LONG.
END PROCEDURE.
RUN Sleep (1000). /* Pause for one (1) second */