TTMSFNCDataGridData.ColumnMax Method
Returns the largest value of a column over a row range.
API unit family: TMSFNCDataGridData
Declaring type: TTMSFNCDataGridData
Syntax
function ColumnMax(AColumn: Integer; AFromRow: Integer = -1; AToRow: Integer = -1): Double;
double __fastcall ColumnMax(int AColumn, int AFromRow = 0xffffffff, int AToRow = 0xffffffff);
Parameters
| Name | Description |
|---|---|
AColumn |
Zero-based column index. |
AFromRow |
First zero-based row of the range; -1 (the default) selects all rows between the fixed rows. |
AToRow |
Last zero-based row of the range, inclusive; -1 selects the default range. |
Returns
The maximum. Empty and non-numeric cells are read as 0, so they affect the result when all values are negative.