IMetabaseUpdateSpecialObjectsNode.ApplyObject

Syntax

ApplyObject(Index: MetabaseSpecialObject): Boolean;

Parameters

Index - type of special object.

Description

The ApplyObject property determines whether the special object that is passed by the Index 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 file C:\Update.pef.

Sub Main;

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 Main;

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:

IMetabaseUpdateSpecialObjectsNode