ISet<SalNumber> FindAllRows(SalNumber nFlagsOn, SalNumber nFlagsOff)
The method FindAllRows returns a list with context numbers for each row that
matches certain flags.
Also available as class method named
PalTblFindAllRows for all
table objects.
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. |
The return value is a list of context numbers for each row that matches certain flags, otherwise null.
ISet<SalNumber> selectedRows = this.FindAllRows(Sys.ROW_Selected, 0); foreach (SalNumber row in selectedRows) { this.SetContextRow(row); DbPLSQLBlock(sStmt); }
This function might be useful when you want to run a certain action on each selected row by getting the list, setting the context for each one and run the certain action.