IMetabaseObjectCreateInfo.KeepEdit

Syntax

KeepEdit: Boolean;

Description

The KeepEdit property determines whether the repository object is in the edit state after creation.

Comments

Available values:

Example

Add a link to the Metabase system assembly.

Sub UserProc;
Var
    MB: IMetabase;
    CrInfo: IMetabaseObjectCreateInfo;
    m: IModule;
Begin
    MB := MetabaseClass.Active;
    CrInfo := MB.CreateCreateInfo;
    CrInfo.ClassId := MetabaseObjectClass.KE_CLASS_MODULE;
    CrInfo.Parent := MB.Root;
    CrInfo.KeepEdit := True;
    m := MB.CreateObject(CrInfo) As IModule;
    m.Text := "Sub Main;" + #13 + #10 +
            "Begin" + #13 + #10 +
            "End Sub Main;";
    (m As IMetabaseObject).Save;
End Sub UserProc;

A new module is created in the repository root after executing this example. To specify the Main procedure in the module the structure remains open for editing after executing the I Metabase.CreateObject method.

See also:

IMetabaseObjectCreateInfo