
This method invokes an ActiveX method.
The ActiveX methods may or may not have additional parameter. Check the Intelligent Help to figure out what they are.
The return value depends on the ActiveX method.
Copy Code |
|---|
(Odcl_AxObject_DoMethod MyOleObject [as OleObject] sMethodName [as String] ...) |
For more information on this method please refer to the ActiveX control's documentation. To find it online please go to http://msdn.microsoft.com.
When finished using the OleObject, you may need to call AxObject_Release to release the OleObject from memory, failure to do so means the space occupied in memory by the OleObject will not be released for use by another application. The ActiveX object will probably manage this for you, please check the documentation to ensure this.
Copy Code |
|---|
; Get the ActiveX object (Setq rObject (Odcl_AxControl_GetOleObject MyProject_MyForm_MyControl)) ; Invoke (Setq rValue (Odcl_AxObject_DoMethod rObject "RangeFromPoint" 10 15)) ; Release the handle to the ActiveX (Odcl_AxObject_Release rObject) |