RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWideStrings.IndexOfName Method

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

Pascal
function IndexOfName(const Name: WideString): Integer; virtual;
C++
virtual __fastcall int IndexOfName(const BSTR 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.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!