detachEvent

Method of IScriptApplication

Helper to detach handler from event plug

Return Value

JavaScript

var pbSuccess = ScriptApplication.detachEvent(strEventName, pEventHandler);

Visual Basic Script

pbSuccess = ScriptApplication.detachEvent strEventName, pEventHandler

C++

VARIANT_BOOL bSuccess;
HRESULT hr = ScriptApplication.detachEvent(strEventName, pEventHandler, &bSuccess);