ObjectByName
- Last UpdatedFeb 28, 2024
- 1 minute read
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
OBJECT ObjectByName(STRING Name)
Name:
The name used to access the object, as specified when creating it in Cicode. For objects created in the Graphics Builder, the object name is set in the Access (Identification) tab, and defaults to "AN" followed by its AN number, for example, "AN35". The Name argument should be enclosed in quotes:
"<Name> ".
Return Value
The requested object, if successful, otherwise an error is generated.
Related Functions
DspAnCreateControlObject, CreateObject, CreateControlObject
Example
See CreateControlObject.