SaveToFile(FileName: String);
FileName. Full path and file name, into which the update is saved.
The SaveToFile method saves an update to a file with the *.pef extension.
The *.pef format is outdated, use the IMetabaseUpdate.SaveToFileNF method to save to the new *.pefx format. The *.pefx format enables to save bigger number of objects to the update.
Executing the example requires the update file C:&Update.pef.
Sub UserProc;
Var
MB: IMetabase;
Update: IMetabaseUpdate;
SpecialObjNode: IMetabaseUpdateSpecialObjectsNode;
Begin
MB := MetabaseClass.Active;
Update := Mb.CreateUpdate;
Update.LoadFromFile("C:\Update.pef");
SpecialObjNode := Update.SpecialObjectsNode;
SpecialObjNode.ApplyObject(MetabaseSpecialObject.SharedParams) := True;
Update.SaveToFile("C:\Update.pef");
End Sub UserProc;
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: