| Ole4D Methods | ||||||||||||||||||
|
OCSetAsynchHandler(p_Area;p_Event;p_Method ) Associates a 4D method to an event of an Ole object. When the event occurs, the 4D method that is associated to the event is called. This method is different from OCSetEventHandler because the events are put in a queue and they are all executed in the current process. The OCSetAsynchHandler command has some restrictions: you cannot set the value of event parameters. However, except this specific case when you want to set the value of event parameters, it is recommended to be used instead the OCSetEventHandler command. Parameters
Return Values 0 – The method call was successful. If the method call was not successful the return value is non zero. For more information call OCLastError. Example
$i := OCSetEventHandler(OCONT1,”NodeClick”,”OnNodeClick”)See Also OCRemoveHandler , Write event handlers |
||||||||||||||||||