ITableField.Expression

Syntax

Expression: IExpression;

Description

The Expression property returns expression of calculated field. If the field is not calculated, the empty value is returned.

Example

Sub Main;

Var

MB: IMetabase;

Table: ITable;

Fields: ITableFields;

Field: ITableField;

Expr: String;

Begin

MB:=MetabaseClass.Active;

Table:=MB.ItemById("TABLE_1").Bind As ITable;

Fields:=Table.Fields;

Field:=Fields.Item(0);

Expr:=Field.Expression.AsString;

End Sub Main;

After executing the example, the Expr variable contains the expression of the first field of table with the Table_1 identifier.

See also:

ITableField