Expression: IExpression;
The Expression property returns expression of calculated field. If the field is not calculated, the empty value is returned.
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: