ObjectNode(Index: MetabaseSpecialObject): IMetabaseUpdateObjectNode;
Index. Special object type.
The ObjectNode property returns the element of the update tree that corresponds to the special object.
If the specified special object was not included in the update, the property returns Null.
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;
Node: IMetabaseUpdateObjectNode;
Begin
Mb := MetabaseClass.Active;
Update := Mb.CreateUpdate;
Update.LoadFromFile("C:\Update.pef");
SpecialObjNode := Update.SpecialObjectsNode;
Node := SpecialObjNode.ObjectNode(MetabaseSpecialObject.DefaultTopobase);
If Node <> Null Then
Debug.WriteLine(Node.Object.Id);
End If;
End Sub UserProc;
After executing the example the specified update file opens. If the special object, map by default, was included in this update, the identifier of the object, in which the map topobase was stored, will be displayed in the development environment console.
See also: