IMetabaseUpdateSpecialObjectsNode.ApplyObject

Syntax

ApplyObject(Index: MetabaseSpecialObject): Boolean;

Parameters

Index. Special object type.

Description

The ApplyObject property determines whether a special object sent by input parameter is included in update.

Comments

If the property is set to True, the specified special object will be included in the update.

Example

Executing the example requires the Update.pef update file in the root of the C disc.

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:\Update.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.

See also:

IMetabaseUpdateSpecialObjectsNode