Sign in Join
FPDoc Onlineexperiment

TValueListEditor.GetCells function

Member of TValueListEditorprotectedIn unit ValEdit

Gets the value in Cells at the specified row and column numbers.

Declaration

pascal
function GetCells(ACol: Integer; ARow: Integer): string; override

Arguments

ACol

Column number to read in Cells.

ARow

Row number to read in Cells.

Function result

Value for the cell at the specified row and column number.

Description

GetCells is a String function used to get the value in the Cells property at the specified row and column numbers. GetCells extends the behavior from the ancestor class by using the Strings property as the source of data in the control.

When ACol contains 0 (the Key column), the Names property in Strings is used to get the value for the current row. When ACol contains 1 (the Value column), the ValueFromIndex method in Strings is used to get the value for the current row.

The return value is an empty string ('') when ARow is 0 (zero) and column titles are enabled in DisplayOptions. Use the TitleCaptions property to set the values displayed when DisplayOptions includes the value doColumnTitles.

See also

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