Fields: IDatasetModelFields;
The Fields property returns the object containing the field collection of data source.
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: