ApplyObject(Index: MetabaseSpecialObject): Boolean;
Index - a type of the special object.
The ApplyObject property determines whether the special object that is passed by the Index parameter entered the update.
If the property is set to True, the specified special object will be included in the update.
Executing the example requires the update file C:\Update.pef.
Sub Main;
Var
MB: IMetabase;
Update: IMetabaseUpdate;
SpecialObjNode: IMetabaseUpdateSpecialObjectsNode;
Begin
MB := MetabaseClass.Active;
Update := Mb.CreateUpdate;
Update.LoadFromFileNF("C:\Update.pefx");
SpecialObjNode := Update.SpecialObjectsNode;
SpecialObjNode.ApplyObject(MetabaseSpecialObject.SharedParams) := True;
Update.SaveToFileNF("C:\Update.pefx");
End Sub Main;
After executing this example the special object, global variables, is added to the update loaded from the C:\Update.pef file. Then the update is saved.
See also: