GetItem() method
- Last UpdatedJul 19, 2024
- 1 minute read
The GetItem method returns the data at the given row and column. The row is given as a zero-based index. You need to specify 0 to retrieve data from the 1st row. The column name can either be the original column name, or the displayed column name.
Syntax
Result = AlarmClient.GetItem(RowNumber, ColumnName);
Parameters
RowNumber
An integer row number for the alarm record containing the value you want to fetch.
ColumnName
Name of the column.
Return Value
Returns the data at the given row and column as a string value.
Example
Data1 = AlarmClient1.GetItem(5, "Current Value");
LogMessage("The current value of the 6th alarm record is " + Data1);
Remarks
To get alarm record data from the currently selected row in a given column name, use the GetSelectedItem method.