IDatasetModelField.Size

Syntax

Size: Integer;

Description

The Size property returns total length 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.Size;

End Sub Main;

After executing the example, the "i" variable contains the total length of the first field of data source. The identifier of data source is Table_1.

See also:

IDatasetModelField