IDatasetInstance.FieldDefs

Syntax

FieldDefs: IDatasetModelFields;

Description

The FieldDefs property returns structure of all data source fields.

Example

Sub Main;

Var

MB: IMetabase;

DSInst: IDatasetInstance;

ModelFields: IDatasetModelFields;

i: Integer;

Begin

MB:=MetabaseClass.Active;

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

ModelFields:=DSInst.FieldDefs;

i:=ModelFields.Count;

End Sub Main;

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

See also:

IDatasetInstance