GefIndexColorAnim.Expression (property)

Gets and sets the string used as an expression.
Syntax: VARIANT = object.Expression
object.Expression = VARIANT
Description: Color Index animation lets you change the color of an object or group of objects to represent the current value The color of the object will change as the value of the expression ranges from 0 to 255.

Example:

Sub IndexColorAnim_Expression()
    
    Dim oCimObj As GefObject
    Dim oCimIndevClrAnim As GefIndexColorAnim
    
    Set oCimObj = CimGetObject
    Set oCimIndevClrAnim = oCimObj.IndexColorAnim
    oCimIndevClrAnim.Expression = 10
    CimGetScreen.Refresh False
    
End Sub