Cicode Programming Reference > Cicode Function Categories > ActiveX Functions > AnByName

AnByName

Retrieves the animation point number of an ActiveX object.

Syntax

AnByName(sName)

sName:

The name given to the ActiveX object. This name is visible in the "Identification" tab of the ActiveX control in the Graphics Builder and is used to access the object.

If the Animation number for an object is 35 and you renamed the object to fred use AnByName("Fred"); which will return 35.

If you left the name of the object as the default use AnByName("AN35"); which will return 35.

Return Value

The animation point number of the object - if successful, otherwise an error code is returned.

Related Functions

CreateControlObject

See Also

ActiveX Functions

Published June 2018