APGen Documentation Previous Topic: Script.ConnectEvents() Next Topic: Script.GetLastError() Parent Topic: Script Object    Script Object
Script.DisconnectEvents()
See Also:

The Script.DisconnectEvents() method disconnects script event handling for an object.

Syntax

VBScript:

Script.DisconnectEvents object

JScript:

Script.DisconnectEvents( object );

Object

Script The Script object.

Parameters

object Disconnect event handling for this object.

Notes

Script.CreateObject() and Script.ConnectEvents() can both be used to activate script event handling for an object.  Script.DisconnectEvents() is used to deactivate script event handling for the object.

If the object was not previously connected using Script.CreateObject() or Script.ConnectEvents(), an error is returned from Script.DisconnectEvents().

For an example, see Script.ConnectEvents().

Applies To

Script Object