Table of Contents

TTMSFNCDataGridData.RowAverage Method

Computes the average of all numeric cells in ARow over the specified column range; AFromColumn/AToColumn default to -1 meaning all data columns.

API unit family: TMSFNCDataGridData Declaring type: TTMSFNCDataGridData

Syntax

function RowAverage(ARow: Integer; AFromColumn: Integer = -1; AToColumn: Integer = -1): Double;

Parameters

Name Description
ARow Zero-based row index used by the operation.
AFromColumn Zero-based column index used by the operation.
AToColumn Zero-based column index used by the operation.

Returns

The average as Double.