FindFirstRow

SalNumber FindFirstRow(SalNumber nFlagsOn, SalNumber nFlagsOff)

The method FindFirstRow returns context number to first row that matches certain flags.
Also available as class method named PalTblFindFirstRow for all table objects.

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 context number to the rows matching the flag criterias, otherwise -1.

Example

SalNumber nFirstRow = this.FindFirstRow(Sys.ROW_Selected, 0);
this.SetContextRow(nFirstRow);
SalString messageID = this.GetColumnText(colnMessageId.GetColumnID());

Comments

This function might be useful when you typically have a RMB that is enabled only when one row is selected and you want to run a certain action on the selected row.