IMetabaseObjectFindInfo.AttributeEx

Syntax

AttributeEx: FindAttributeEx;

Description

The AttributeEx property determines the attribute, by values of which the search will be executed.

Comments

The property is set to FindAttribute.Ident by default, the value specified in the IMetabaseObjectFindInfo.Text property is searched among identifiers of the objects.

Example

To execute the example, add a link to the Metabase system assembly.

Sub UserProc;
Var
    MB: IMetabase;
    MDescs: IMetabaseObjectDescriptors;
    MDesc: IMetabaseObjectDescriptor;
    FInfo: IMetabaseObjectFindInfo;
Begin
    MB := MetabaseClass.Active;
    FInfo := MB.CreateFindInfo;
    FInfo.Text := "33";
    FInfo.AttributeEx := FindAttributeEx.Key;
    FInfo.WholeWordsOnly := False;
    //Search objects
    MDescs := MB.Find(FInfo);
    //View results
    For Each MDesc In MDescs Do
        Debug.WriteLine("Identifier: " + MDesc.Id + "; Name: " + MDesc.Name);
    End For;
End Sub UserProc;

After executing the example all objects containing the 33 value in the key will be searched. Names and identifiers of the found objects are displayed in the development environment console.

See also:

IMetabaseObjectFindInfo