WaitForEvents

This method places an application in a suspended state until an event occurs.

Syntax

app.WaitForEvents

Parameters

app
Reference to the App object.

Return Value

None.

Remarks

This method is useful only when used in a code module. The WaitForEvents method stops execution of a code module until an event occurs. After the event executes, the code module continues waiting for more events unless the event calls the EndWaitForEvents method.