SalNumber PalTblCountRows(SalWindowHandle hWndTbl, SalNumber nFlagsOn, SalNumber nFlagsOff)
The method PalTblCountRows returns the amount of rows that match certain flags.
Also available as class method named
CountRows for all table
objects.
Name | Description |
---|---|
SalNumber hWndTbl | The handle (or name) of a table window. |
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. |
The return value is the sum of the rows matching the flag criterias.
bool bRetValue = (Ifs.Fnd.ApplicationForms.Int.PalTblCountRows.CountRows(this, Sys.ROW_Selected, 0) == 1);
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.