ITableField.DataDomain

Syntax

DataDomain: DbDataDomain;

Description

The DataDomain property determines type of table field data if it is used to store multibyte information.

Comments

The field can store information, if the ITableField. DataType property has the value DbDataType. String or DbDataType. Blob. Working with multibyte information is described in the knowledge database in the Working with Fields that have Custom Data Type article.

Example

Executing the example requires that the repository contains a table with the TBL identifier.

Sub Main;

Var

MB: IMetabase;

Table: ITable;

Fields: ITableFields;

Field: ITableField;

j, i: Integer;

Begin

MB := MetabaseClass.Active;

Table := MB.ItemById("TBL").Bind As ITable;

Fields := Table.Fields;

For j := 0 To Fields.Count - 1 Do

Field := Fields.Item(j);

i := Field.DataType;

If (i = DbDataType.Blob) Then

Select Case Field.DataDomain

Case DbDataDomain. None: Debug. WriteLine ("Field" + Field. Name + "stores binary data");

Case DbDataDomain. Memo: Debug. WriteLine ("Field" + Field. Name + "stores text data");

Case DbDataDomain. Raw: Debug. WriteLine ("Field" + Field. Name + "stores user data");

End Select;

End If;

End For;

End Sub Main;

After executing the example, the console window displays the information on table fields that are used to store multibyte information.

See also:

ITableField