IDatasetModelField.Precision

Syntax

Precision: Integer;

Description

The Precision property returns value accuracy (quantity of signs after dot) of data source field.

Example

Sub Main;

Var

MB: IMetabase;

DSInst: IDatasetInstance;

DSModel: IDatasetModel;

Fields: IDatasetModelFields;

Field: IDatasetModelField;

i: Integer;

Begin

MB:=MetabaseClass.Active;

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

DSModel:=DSInst.Dataset;

Fields:=DSModel.Fields;

Field:=Fields.Item(0);

i:=Field.Precision;

End Sub Main;

After executing the example, the "i" variable contains quantity of decimal signs of the first field of data source. The identifier of data source is Table_1.

See also:

IDatasetModelField