System.IniFiles.THashedStringList.IndexOfName

From RAD Studio API Documentation
Jump to: navigation, search

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
System.IniFiles.pas
System.IniFiles.hpp
System.IniFiles THashedStringList

Description

Returns the position of the first string with the form Name=Value with the specified name part.

Call IndexOfName to locate the first occurrence of a string with the form Name=Value 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.

The Name that identifies the string is to the left of the equal sign (=), and the current Value of the Name identifier is on the right side. There should be no spaces present before or after the equal sign.

Note: If there is more than one string with a name portion matching the Name parameter, IndexOfName returns the position of the first such string.

See Also