Method GetKeyPosition
GetKeyPosition(int, string)
Retrieves the 1-based position of the row with the specified primary key in the table with the specified ID.
int GetKeyPosition(int iPID, string key)
Parameters
iPID
intThe ID of the table parameter.
key
stringThe primary key of the row for which the position has to be determined.
Returns
- int
The 1-based position of the row in the table. If the table does not contain a row with the specified primary key, 0 is returned.
Examples
int position = protocol.GetKeyPosition(1000, "Row 10");
Remarks
- This is a wrapper method for the NotifyProtocol type 163 NT_GET_KEY_POSITION call.