Table of Contents

Method GetKeyPosition

Namespace
Skyline.DataMiner.Scripting
Assembly
SLManagedScripting.dll

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 int

The ID of the table parameter.

key string

The 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