CountRows

SalNumber CountRows(SalNumber nFlagsOn, SalNumber nFlagsOff)

The method CountRows returns the amount of rows that match certain flags.
Also available as global method method PalTblCountRows.

Parameters

Name Description
SalNumber nFlagsOn The flags that the row should have. You can combine Sys.ROW_* flags using the OR (|) operator
SalNumber nFlagsOff The flags that the row should not have. You can combine Sys.ROW_* flags using the OR (|) operator.

Returns

The return value is the sum of the rows matching the flag criterias.

Example

bool bRetValue = (this.CountRows(Sys.ROW_Selected, 0) == 1);

Comments

This function might be useful were there's a need to know the exact amount of rows e.g. a RMB that only should be enabled if 1 row in the table is marked as selected.