Fields: IDatasetInstanceFields;
The Fields property returns collection of fields values of current data source record.
Sub Main;
Var
MB: IMetabase;
DSInst: IDatasetInstance;
Fields: IDatasetInstanceFields;
v: Variant;
Begin
MB := MetabaseClass.Active;
DSInst := MB.ItemById("Table_1").Open(Null) As IDatasetInstance;
Fields := DSInst.Fields;
v:=Fields.Item(0).Value;
End Sub Main;
After executing the example, the "v" variable contains default value of the first record of data source. The identifier of a data source is Table_1.
See also: