IMetabaseUpdate.LoadFromFileNF

Syntax

LoadFromFileNF(FileName: String; [Mode: UpdateLoadMode = 0]);

Parameters

FileName. Full name of the update file.

Mode. Method for loading objects to the update. Optional parameter.

Description

The LoadFromFileNF method loads an update from a file with the *.pefx extension.

Comments

The *.pefx format allows for saving a bigger number of objects to the update, comparing with the *.pef format. Use the IMetabaseUpdate.LoadFromFile method to load an update from the old *.pef format. After loading the update from file and making necessary changes, before saving call the Refresh method to synchronize objects that were previously saved to this update.

Example

Executing the example requires the D:\Update\Update.pefx 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.LoadFromFileNF("D:\Update\Update.pefx");
    SpecialObjNode := Update.SpecialObjectsNode;
    SpecialObjNode.ApplyObject(MetabaseSpecialObject.SharedParams) := True;
    Update.Refresh;
    Update.SaveToFileNF("D:\Update\Update2.pefx");
End Sub UserProc;

After executing the example the special object that is global variables is added to the update loaded from the file. Then the update is saved to other file.

See also:

IMetabaseUpdate