ObjectDCL Banner

AxControl_DoMethod Method

Description

This method invokes an ActiveX method.

Parameters

MyControlReference
Reference to the control in the form of MyProject_MyForm_MyControl.
ProjectFile
String identifying the project as it was passed in LoadProject.
DialogName
String identifying the dialog by name.
ControlName
String identifying the control by name.
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

The recommended convention is passing the control identifier directly:

CopyCode imageCopy Code
(Odcl_AxControl_DoMethod 
		MyControlReference [as Reference]
		sMethodName [as String]
		...)

An alternative convention is to identify the control by providing the project file, the dialog name and the control name:

CopyCode imageCopy Code
(Odcl_AxControl_DoMethod
		ProjectFile [as String]
		DialogName [as String]
		ControlName [as String]
		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.

Applies For

ActiveX.

Example

CopyCode imageCopy Code
; Invoke
(Setq rValue (Odcl_AxControl_DoMethod MyProject_MyForm_MyControl "RangeFromPoint" 10 15))