ISDBScriptControl::UnRegisterEvents

From MediaMonkey Wiki
Revision as of 20:40, 25 February 2010 by Twinbee (talk | contribs) (Example code to unregister all events for current script only)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

CoClass SDBScriptControl, Interface ISDBScriptControl

Sub UnRegisterEvents(ObjectVar As Object)


Parameters

Name Type Description
ObjectVar Object Object whose events should be disconnected.


Method description

Unregisters all event handlers of the Object created by this script.

Example code

Is it safe to use the following to disable all events without interfering with any other scripts from other developers, as it only applies to events in the current VBS file:

Script.UnRegisterEvents SDB