ObjectDCL Banner

AxObject_GetProperty Method

Description

This method returns the value of a control property.

Parameters

MyOleObject
OleObject to the ActiveX object.
PropertyName
String identifying the property by name.

Return Values

Returns the following according to the situation:

  • The value of which the type depends on the property. May be a list just like any other type.
  • Nil if the object is not found, the property does not exist or the property is read-only.

AutoLISP Syntax

CopyCode imageCopy Code
(Odcl_AxObject_GetProperty 
		MyOleObject [as OleObject]
		PropertyName [as String])

Remarks

See the property of interest to know what string to pass.

Applies For

ActiveX.

Example

CopyCode imageCopy Code
; Get the ActiveX object
(Setq rObject (Odcl_AxControl_GetOleObject MyProject_MyForm_MyControl))
		
; Get the control property
(Setq rValue (Odcl_AxObject_GetProperty rObject "SomeProperty"))

; Release the handle to the ActiveX
(Odcl_AxObject_Close rObject)

See Also

AxObject_SetColorProperty, AxObject_SetPictureProperty, AxObject_SetProperty