Expression

concerns

The Expression property modifies the expression associated with a property of the control.

 

Syntax

Expression(PropertyName, PropertyType)

Return value

The expression can be read and set. (String)

Parameter

Use

Name

Type

Passing

Description

Required

PropertyName

String

ByVal

The name of the property.

Required

PropertyType

ContainerPropertyTypes

ByVal

Determines, if the name of the property is part of the control container or part of the control.

 

ContainerPropertyTypes

Description

0 - ContainerProperty

The type of PropertyName is a control container property.

1 - ObjectProperty

The type of PropertyName is a control property.

 

 

Example:

 

c.Expression("Value", ControlPropertyTypes.ObjectProperty) := "Width"

The expression of the Value property of the control object is changed to the Width feature of the actual TCE class.