Table of Contents

TTMSFNCDataGrid.RowAverage Method

Returns the average of numeric values across the data columns of a row.

API unit family: TMSFNCDataGrid Declaring type: TTMSFNCDataGrid Inherited from: TTMSFNCCustomDataGrid

Syntax

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

Parameters

Name Description
ARow Zero-based row index.
AFromColumn First column to include, or -1 for the first data column.
AToColumn Last column to include, or -1 for the last data column.

Returns

Average value as a Double.