Script.Sleep(Milliseconds)
Script.Sleep(Milliseconds) pauses script execution for the given amount of milliseconds.
Note: This pauses all DEACOM code execution, not just script execution.
Applies To
Properties and Methods
None
Available
The .Sleep(Milliseconds) method is available in:
- 15.03.016
- All newer builds
Type
Method
Syntax
Script.Sleep(Milliseconds);
Parameters
None
Example
//--add this script to the open event on the NewOrd1 form layout
Script.ShowWaitWindow('Hello World! Waiting for a script to run.');
Script.Sleep(3000); //--Wait 3 seconds
Script.HideWaitWindow();
/* Expected Prompt Response:
Script.Sleep(3000) pauses script execution for 3 seconds.
*/