Data.DBXCommon.TDictionaryStringList.IndexOfName
Delphi
function IndexOfName(const Name: string): Integer; override;
C++
virtual int __fastcall IndexOfName(const System::UnicodeString Name);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | Data.DBXCommon.pas Data.DBXCommon.hpp |
Data.DBXCommon | TDictionaryStringList |
Description
Returns the position of the first name-value pair with the specified name. {{#multireplace:Data.DBXCommon.TDictionaryStringList.IndexOfName|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:System.Classes.TStrings.IndexOfName|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:System.Classes.TStrings.IndexOfName|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.
Returns the position of the first name-value pair with the specified name.
Call IndexOfName to locate the first occurrence of a name-value pair where the name part is equal to the Name parameter or differs only in case. IndexOfName returns the 0-based index of the string. If no string in the list has the indicated name, IndexOfName returns -1.
Note: If there is more than one name-value pair with a name portion matching the Name parameter, IndexOfName returns the position of the first such string.