Cicode Programming Reference > Cicode Function Categories > ActiveX Objects Introduction > _ObjectSetProperty

_ObjectSetProperty

Sets a specific property of an ActiveX object.

Syntax

_ObjectSetProperty(hObject, sProperty, vValue)

hObject:

The handle for the object (as returned by the ObjectByName() function).

sProperty:

The name of the property you want to set.

vValue:

The value to which the property will be set. This value can be of any data type. Appropriate coercion will take place when creating the equivalent automation parameter.

Return Value

0 (zero) if successful, otherwise an error is returned.

Related Functions

ObjectByName, DspAnCreateControlObject, CreateObject, CreateControlObject

Example

See CreateControlObject

See Also

ActiveX Functions