Table of Contents

Method GetParameterIndex

Namespace
Skyline.DataMiner.Scripting
Assembly
SLManagedScripting.dll

GetParameterIndex(int, int, int)

Retrieves the value of a cell in the table specified by the 1-based row and column position.
Note that this method should not be used. Using GetParameterIndexByKey(int, string, int) instead is highly recommended.

object GetParameterIndex(int iID, int iX, int iY)

Parameters

iID int

The ID of the table parameter.

iX int

The 1-based position of the row.

iY int

The 1-based position of the column.

Returns

object

The value of the cell.

Examples

string myValue = Convert.ToString(protocol.GetParameterIndex(100, 5, 6));

Remarks

  • This is a wrapper method for the NotifyProtocol type 122 NT_GET_PARAMETER_INDEX call.
  • When a GetParameterIndex call fails because the retrieved cell falls outside the bounds of the table, a null reference is returned and the following message is logged: “NT_GET_PARAMETER_INDEX for [tableID]/[rowPosition]/[columnPosition] failed. 0x80040244”.
  • When a GetParameterIndex call fails because the protocol does not contain a table parameter with the provided table ID, a null reference is returned and the following message is logged: “NT_GET_PARAMETER_INDEX for [tableID]/[rowPosition]/[columnPosition] failed. 0x80040221”.