IMetabaseUpdate.SaveToFile

Syntax

SaveToFile(FileName: String);

Parameters

FileName. Full path and file name, to which the update is saved.

Description

The SaveToFile method saves an update to a file with the *.pef extension.

Comments

The *.pef format is outdated, use the IMetabaseUpdate.SaveToFileNF method to save to the new *.pefx format. The *.pefx format allows for saving a bigger number of objects to the update.

Example

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

Add a link to the Metabase system assembly.

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 the example the special object that is global variables is added to the update loaded from the C:\Update.pef file. Then the update is saved.

See also:

IMetabaseUpdate