CaseSensitive: Boolean;
CaseSensitive: boolean;
The CaseSensitive property determines whether the search is case-sensitive.
Available values:
True. Match case.
False. Default value. Do not match case.
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 := "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;
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;
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.
See also: