Method AutomationObject():setProperty() Foundation
Sets the value of a property
:setProperty( <cName> | <nID>, [<xParam, ...>] <xValue> ) --> xValue
:setProperty() returns the property value passed.
:setProperty() is used to set a value of a property exposed by a COM/ActiveX component. In case a property is accessed that is not member of the connected COM/ActiveX component, a runtime error is generated.
Normally, :setProperty() need not be called directly by applications. Instead, property values can be assigned via the assignment operator (:=).
is equivalent to
Calling :setProperty() is required when accessing a property of a COM/ActiveX component that has the same name as an instance variable of the AutomationObject. Using :setProperty() is also required to when more than one value must be passed for qualifying the property of the connected COM/ActiveX component.
The first parameter profile
directly corresponds to normal property access via the assignment operator, eg.:
The second parameter profile is used for accessing properties that require parameters for qualification. To access a cell in a grid, for instance, the corresponding call to :setProperty() might look as follows:
When values are assigned to a property, then Xbase++ data types are automatically converted to COM/ActiveX data types. See the method :callMethod() for further reference.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.