Declares the name of a custom event that can be fired from within the script component.
<event name="name" dispid="dispid"/>
To fire an event, use the fireEventmethod.
The following script component fragment defines two events (namechanged and querydone) and shows how to fire one of them (namechanged).
Note A CDATA section is required to make the script in the <script> element opaque. For details, see Script Component Files and XML Conformance.
<public> <property name="name"> <get/> <put/> </property> <event name="namechanged"/> <event name="querydone" dispid="22"/> <public> <script language="VBScript"> <![CDATA[ var gName Sub get_lowercaseName() get_lowercaseName = name End Sub Sub put_lowercaseName(newLCName) gName = newLCName fireEvent("namechanged") End Sub ]]> </script>
<method> Element | <property> Element | Exposing Events | Exposing Methods | Exposing Properties | fireEvent Method