LoadFromFileNF(FileName: String; [Mode: UpdateLoadMode = 0]);
FileName. Full name of the update file.
Mode. Method for loading objects to the update. Optional parameter.
The LoadFromFileNF method loads an update from a file with the *.pefx extension.
The *.pefx format enables 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.
Executing the example requires the C:\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("C:\Update.pefx");
SpecialObjNode := Update.SpecialObjectsNode;
SpecialObjNode.ApplyObject(MetabaseSpecialObject.SharedParams) := True;
Update.SaveToFileNF("C:\Update2.pefx");
End Sub UserProc;
After executing the example the special object that is global variables is added to the update loaded from the C:\Update.pefx file. Then the update is saved to other file.
See also: