TTMSFNCDataGridData.ColumnDistinct Method
Counts the distinct text values of a column over a row range.
API unit family: TMSFNCDataGridData
Declaring type: TTMSFNCDataGridData
Syntax
function ColumnDistinct(AColumn: Integer; AFromRow: Integer = -1; AToRow: Integer = -1): Double;
double __fastcall ColumnDistinct(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 number of different cell texts, compared case-insensitively; an empty cell counts as one value.