TTMSFNCDataGridData.ColumnAverage Method
Computes the average of all numeric cells in AColumn over the specified row range; AFromRow/AToRow default to -1 meaning all data rows.
API unit family: TMSFNCDataGridData
Declaring type: TTMSFNCDataGridData
Syntax
function ColumnAverage(AColumn: Integer; AFromRow: Integer = -1; AToRow: Integer = -1): Double;
Parameters
| Name | Description |
|---|---|
AColumn |
Zero-based column index used by the operation. |
AFromRow |
Zero-based row index used by the operation. |
AToRow |
Zero-based row index used by the operation. |
Returns
The average as Double.