attachEvent

Method of IScriptApplication

Helper to attach more than one handler to event plug

Return Value

JavaScript

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

Visual Basic Script

pbSuccess = ScriptApplication.attachEvent strEventName, pEventHandler

C++

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