Properties: IMetabaseUpdateProperties;
The Properties property returns the collection of update flags.
Executing the example requires the C:\Update.pef update file.
Add links to the Dal and Metabase system assemblies.
Sub UserProc;
Var
MB: IMetabase;
Update: IMetabaseUpdate;
Properties: IMetabaseUpdateProperties;
Prop: IMetabaseUpdateProperty;
Begin
MB := MetabaseClass.Active;
Update := MB.CreateUpdate;
Update.LoadFromFile("c:\Update.pef");
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 UserProc;
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: