IDatasetModel.Fields

Syntax

Fields: IDatasetModelFields;

Description

The Fields property returns the object containing the field collection of data source.

Example

Sub Main;

Var

MB: IMetabase;

DSInst: IDatasetInstance;

DSModel: IDatasetModel;

Fields: IDatasetModelFields;

i: Integer;

Begin

MB:=MetabaseClass.Active;

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

DSModel:=DSInst.Dataset;

Fields:=DSModel.Fields;

i:=Fields.Count;

End Sub Main;

After executing the example, the "i" variable contains the quantity of data source fields. The identifier of data source is Table_1.

See also:

IDatasetModel