You are here: Core Reference > Coding > Scripting > AlarmBanner.AddMenuSeparator

AlarmBanner.AddMenuSeparator

The AddMenuSeparator function allows a script to add a separator line to the context sensitive menu that is available via the Alarm Banner in ViewX. The AddMenuSeparator function is only available for use in Alarm Banner scripts.

Syntax

AlarmBanner.AddMenuSeparator

Description

Adds a separator line below a menu item in the context sensitive menu that is available for alarms in the Alarm Banner. The separator line is added below the last menu item that appears before the AddMenuSeparator function in the script.

Arguments

None.

Returns

None.

Example:

In this example, the AddMenuSeparator function is used to add a separator line between the "Print Alarm Details" and "Display Alarm Form" options on the context sensitive menu for the Alarm Banner:

  • Function BuildAlarmMenu
    • AlarmBanner.AddMenuItem "Show Alarm Details","AlarmInfo"
    • AlarmBanner.AddMenuItem "Print Alarm Details","PrintAlarmInfo"
    • AlarmBanner.AddMenuSeparator
    • AlarmBanner.AddMenuItem "Display Alarm Report Form","DisplayAlarmForm"
  • End Function


ClearSCADA 2015 R2