SelectAlarmRow Method Example

The following example shows how to select and deselect a row of the Alarm Summary object.

' pause alarm read so nothing is added, deleted or moved

AlarmSummaryOCX1.PauseAlarmRead

lngTotalFiltered = AlarmSummaryOCX1.TotalFilteredAlarms

ListBox1.Clear

For lngLoop = 1 To lngTotalFiltered

AlarmSummaryOCX1.SelectAlarmRow lngLoop, True

AlarmSummaryOCX1.GetSelectedNodeTag strNode, strTag

ListBox1.AddItem strNode & "." & strTag

AlarmSummaryOCX1.SelectAlarmRow lngLoop, False

Next lngLoop

' resume alarm read

AlarmSummaryOCX1.ResumeAlarmRead