Method ActiveXObject():subscribeEvent() Foundation
Subscribes to a COM/ActiveX event.
:subscribeEvent( <nDISPID>, <bHandler>, [<cGUID>] ) --> lSuccess
:subscribeEvent() returns a logical value. If the event identified by the dispatch ID in <nDISPID> is subscribed, the value .T. (true) is returned. Otherwise, :subscribeEvent() returns .F. (false).
The method :subscribeEvent() subscribes to the COM/ActiveX event specified via the <nDISPID> parameter. After the event is subscribed by the ActiveXObject, the code block passed in parameter <bHandler> is called automatically when the event is fired by the ActiveX object connected. To remove the association established by this method, an application uses the method :unsubscribeEvent().
To verify whether the event is supported by the connected COM/ActiveX object, :subscribeEvent() automatically checks all COM event interfaces published by the COM/ActiveX component. Therefore, parameter <cGUID> need not be specified by the Xbase++ application unless an event interface cannot be addressed for any reason.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.