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

ObjectByName

Retrieves an ActiveX object. This is useful when you know the object by name only (this will often be the case for objects created during configuration, rather than those created at runtime using a Cicode function).

Syntax

ObjectByName(sName)

sName:

The name for the object in the form of "AN" followed by its AN number, for example, "AN35". This name is used to access the object. The sName argument should be enclosed in quotes "".

Return Value

The requested object, if successful, otherwise an error is generated.

Related Functions

DspAnCreateControlObject, CreateObject, CreateControlObject

Example

See CreateControlObject

See Also

ActiveX Functions