Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

PageEventGetEx

  • Last UpdatedJul 13, 2023
  • 1 minute read

Gets the event (command or value) that will be triggered at runtime when the window is activated or deactivated.

See Page Properties - Events for more information

Syntax

PageEventGetEx ()

Return Value

Command (Cicode function) or value that was set for the window.

Example

{
string strEventOnEntryCommand,
strEventOnExitCommand,
strEventWhileShownCommand,
strEventOnShownCommand,
strEventOnActivateCommand,
strEventOnDeactivateCommand,
strEventOnEntryCommandExp,
strEventOnExitCommandExp,
strEventWhileShownCommandExp,
strEventOnShownCommandExp,
strEventOnActivateCommandExp,
strEventOnDeactivateCommandExp


gb.ProjectSelect("Example_AlarmIndicator");
gb.PageOpen("Example_AlarmIndicator", "Test");

strEventOnEntryCommand = "PageEventsPutEntryCommandEx";
strEventOnExitCommand = "PageEventsPutExitCommandEx";
strEventWhileShownCommand = "PageEventsPutShownCommandEx";
strEventOnShownCommand = "PageEventsPutShownCommandEx";
strEventOnActivateCommand = "PageEventsPutActivateCommandEx";
strEventOnDeactivateCommand = "PageEventsPutDeactivateCommandEx";

gb2.PageEventsPutEx(strEventOnEntryCommand, strEventOnExitCommand, strEventWhileShownCommand,
strEventOnShownCommand,
strEventOnActivateCommand, strEventOnDeactivateCommand);
gb2.PageEventsGetEx(out strEventOnEntryCommandExp, out strEventOnExitCommandExp, out strEventWhileShownCommandExp,
out strEventOnShownCommandExp, out strEventOnActivateCommandExp, out strEventOnDeactivateCommandExp);


strEventOnEntryCommand = "PageEventsPutEntryCommand";
strEventOnExitCommand = "PageEventsPutExitCommand";
strEventWhileShownCommand = "PageEventsPutShownCommand";
strEventOnShownCommand = "PageEventsPutShownCommand";

gb2.PageEventsPut(strEventOnEntryCommand, strEventOnExitCommand, strEventWhileShownCommand,
strEventOnShownCommand);
gb2.PageEventsGet(out strEventOnEntryCommandExp, out strEventOnExitCommandExp, out strEventWhileShownCommandExp,
out strEventOnShownCommandExp);
}

PageEventPutEx

In This Topic
TitleResults for “How to create a CRG?”Also Available in