ISDBScriptControl::UnRegisterEvents: Difference between revisions

From MediaMonkey Wiki
Jump to navigation Jump to search
No edit summary
 
(Example code to unregister all events for current script only)
 
Line 9: Line 9:


Unregisters all event handlers of the Object created by this script.
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:
<source lang="vb">Script.UnRegisterEvents SDB</source>


[[Category:Scripting|{{PAGENAME}}]]
[[Category:Scripting|{{PAGENAME}}]]

Latest revision as of 20:40, 25 February 2010

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