Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Extension - method of object PmAlarmEventItem

Description:
The method enables access to data extension (ExtAlarmAnalog, ExtAlarmBinary or ExtEvent) that the alarm item originated from.
Syntax:
Extension As Object
Calling:
oAlarmEventItem.Extension()
Return Values:
Returns reference to Data extension object type. If an error occures then Nothing value is returned (the alarm item did not originate in the data extension). Nothing value can be tested by VBScript Is operator.
Example:
Set oItem = pMe.Pm("/alarm").Item("item1")
Set oExt = oItem.Extension()
If Not oExt Is Nothing And oExt.ClassName = "ExtAlarmAnalog" Then
  oExt.Min1
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice