IDatasetModelField.IsCalculated

Syntax

IsCalculated: Boolean;

Description

The IsCalculated property returns True if the field of data source is calculated.

Example

Sub Main;

Var

MB: IMetabase;

DSInst: IDatasetInstance;

DSModel: IDatasetModel;

Fields: IDatasetModelFields;

Field: IDatasetModelField;

s: String;

Begin

MB:=MetabaseClass.Active;

DSInst:=MB.ItemById("Table_1").Open(Null) As IDatasetInstance;

DSModel:=DSInst.Dataset;

Fields:=DSModel.Fields;

Field:=Fields.Item(0);

If Field.IsCalculated Then

s:="Yes";

Else

s:="No";

End If;

End Sub Main;

After executing the example, the "s" variable contains Yes, if the first field of data source is calculated. The identifier of data source is Table_1.

See also:

IDatasetModelField