IMetabaseObjectFindInfo.CaseSensitive

Fore Syntax

CaseSensitive: Boolean;

Fore.NET Syntax

CaseSensitive: Boolean;

Description

The CaseSensitive property determines whether the search is case-sensitive.

Comments

Available values:

Fore Example

Sub UserProc;
Var
    MB: IMetabase;
    MDescs: IMetabaseObjectDescriptors;
    MDesc: IMetabaseObjectDescriptor;
    FInfo: IMetabaseObjectFindInfo;
Begin
    MB := MetabaseClass.Active;
    FInfo := MB.CreateFindInfo;
    FInfo.Text := "Object";
    FInfo.Attribute := FindAttribute.NameOrIdent;
    FInfo.CaseSensitive := True;
    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 Object text in the name or in the identifier are searched. Case is taken into account during the search. Names and identifiers of the found objects are displayed in the development environment console.

Fore.NET Example

The requirements and result of the Fore.NET Example execution match with those in the Fore Example

Imports Prognoz.Platform.Interop.Metabase;

Public Shared Sub Main12(Params: StartParams);
Var
    MB: IMetabase;
    MDescs: IMetabaseObjectDescriptors;
    MDesc: IMetabaseObjectDescriptor;
    FInfo: IMetabaseObjectFindInfo;
Begin
    MB := Params.Metabase;
    FInfo := MB.CreateFindInfo();
    FInfo.Text := "Object";
    FInfo.Attribute := FindAttribute.fnaNameOrIdent;
    FInfo.CaseSensitive := True;
    FInfo.WholeWordsOnly := False;
    //Search objects
    MDescs := MB.Find(FInfo);
    //View results
    For Each MDesc In MDescs Do
        System.Diagnostics.Debug.WriteLine(Identifier:  + MDesc.Id + "; Name: " + MDesc.Name);
    End For;
End Sub;

See also:

IMetabaseObjectFindInfo