Data.DBXPlatform.TDBXStringList.IndexOfName

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: public
Source: System.Classes.pas
Unit: Data.DBXPlatform
Parent: TDBXStringList

Delphi

function IndexOfName(const Name: string): Integer; override;

Description

Returns the position of the first name-value pair with the specified name.

Data.DBXPlatform.TDBXStringList.IndexOfName inherits from System.Classes.TStrings.IndexOfName. All content below this line refers to System.Classes.TStrings.IndexOfName.

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.

See Also

Code Examples