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

AVEVA™ InTouch HMI

OLE_IncrementOnObjectError() Function

  • Last UpdatedFeb 20, 2017
  • 1 minute read

In a script, you can use the OLE_IncrementOnObjectError() function to designate an integer tagname as counter for the number of OLE errors.

Syntax

OLE_IncrementOnObjectError(integertag)

Parameters

integertag

The tagname that acts as a counter.

Remarks

If OLE error message dialog boxes are displayed, the counter tagname is only incremented after the OLE error message dialog box is closed.

Example(s)

This script designates the integer tagname errorcount as error counter, hides the error message dialog boxes and attempts to create an OLE object based on an invalid OLE class name. This creates an error and the tagname value errorcount is incremented to 1.

errorcount = 0;

OLE_IncrementOnObjectError(errorcount);

OLE_ShowMessageOnObjectError(0);

OLE_CreateObject(%WS,"InVaLiD.cLaSs.nAmE");

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