RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TValueListEditor.FindRow Method

Locates the row that corresponds to a specified key name.

Pascal
function FindRow(const KeyName: string; var Row: Integer): Boolean;
C++
__fastcall Boolean FindRow(const AnsiString KeyName, int Row);

Call FindRow to locate the row in the value list editor that has the value specified by KeyName in the first column. This corresponds to a name/value pair in the string list where the name part is KeyName. 

If a row in the value list editor has the specified key name, FindRow returns true and the Row parameter returns the index of the first row found with the specified name. If the specified name does not correspond to any of the rows in the value list editor, FindRow returns false. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!