ObjectDCL Banner

AxObject_DoMethod Method

Description

This method invokes an ActiveX method.

Parameters

MyOleObject
OleObject to the ActiveX object.
sMethodName
String identifying the method by name.

The ActiveX methods may or may not have additional parameter. Check the Intelligent Help to figure out what they are.

Return Values

The return value depends on the ActiveX method.

AutoLISP Syntax

CopyCode imageCopy Code
(Odcl_AxObject_DoMethod 
		MyOleObject [as OleObject]
		sMethodName [as String]
		...)

Remarks

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.

Applies For

ActiveX.

Example

CopyCode imageCopy 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)