From MediaMonkey Wiki
Revision as of 17:31, 21 March 2007 by Jiri (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

CoClass SDBScriptControl, Interface ISDBScriptControl

Sub RegisterEvent(ObjectVar As Object, EventName As String, HandlerName As String)


Name Type Description
ObjectVar Object Object of the event
EventName String Event name (string)
HandlerName String Procedure name of the handler (string)

Method description

Registers COM object event to be handled by a script.

Example code

Script.RegisterEvent SDB, "OnShutdown", "ShutdownHandler"

Sub ShutdownHandler
  ' Event code goes here....
End Sub