ISDBScriptControl::RegisterEvent: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{MethodDeclaration|SDBScriptControl|ISDBScriptControl|Sub RegisterEvent(ObjectVar As Object, EventName As String, HandlerName As String)}} | {{MethodDeclaration|SDBScriptControl|ISDBScriptControl|Sub RegisterEvent(ObjectVar As Object, [[SDBApplication#ISDBApplicationEvents_members|EventName]] As String, HandlerName As String)}} | ||
===Parameters=== | ===Parameters=== |
Revision as of 18:26, 26 December 2007
CoClass SDBScriptControl, Interface ISDBScriptControl
Sub RegisterEvent(ObjectVar As Object, EventName As String, HandlerName As String)
Parameters
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