IMetabaseUpdateProperty.DataType

Syntax

DataType: DbDataType;

Description

The DataType property determines a type of flag data.

Example

Executing the example requires the update file C:\Update.pefx.

Sub Main;

Var

MB: IMetabase;

Update: IMetabaseUpdate;

Properties: IMetabaseUpdateProperties;

Prop: IMetabaseUpdateProperty;

Begin

MB := MetabaseClass.Active;

Update := MB.CreateUpdate;

Update.LoadFromFileNF("c:\Update.pefx");

Properties := Update.Properties;

Prop := Properties.Add;

Prop.Name := "Flag";

Prop.Id := "FLAG";

Prop.DataType := DbDataType.Integer;

Prop.Value := 1;

Update.SaveToFileNF("C:\Update.pefx");

End Sub Main;

After executing the example a flag of integer type with the "1" value by default is added to the update, loaded from the C:\Update.pefx. Then the update is saved.

See also:

IMetabaseUpdateProperty