Sign in Join
FPDoc Onlineexperiment

TCSVDocument.IndexOfCol function

Member of TCSVDocumentpublicIn unit CsvDocument

Test whether a value exists at a given row.

Declaration

pascal
function IndexOfCol(const AString: string; ARow: Integer): Integer

Arguments

AString

String to search for.

ARow

Row to search in.

Function result

Index of the first cell with value aString at row aRow.

Description

IndexOfCol returns the index of the first cell with given value aString in row aRow. It returns -1 if row aRow does not exist, or if the value does not appear in the given row.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.