APGen Documentation Previous Topic: Script.Debug Next Topic: Script.OnError Parent Topic: Script Object    Script Object
Script.Waiting
See Also:

The Script.Waiting property returns whether the script is currently in a Script.Wait() statement.

Syntax

VBScript:

boolWaiting = Script.Waiting

JScript:

boolWaiting = Script.Waiting;
Object

Script The Script object.

Return Value

boolWaiting True: The main thread of script execution is paused at a Wait() statement.
False: The script is not Wait() ing.

Notes

Script.Waiting is useful for detecting re-entrancy when handling COM events from out-of-process COM objects.  Script.Wait(), Script.StopWait(), and Script.Waiting are all useful for pausing a script while out-of-process COM object events are being handled.  For more information, see the Sinking COM Events and Script.Wait() topics.

Applies To

Script Object