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

AVEVA™ InTouch HMI

Understand windows controls error messages

  • Last UpdatedJul 25, 2024
  • 1 minute read

Given an error number, wcErrorMessage(), returns a string message describing the error. It applies to list boxes, text boxes, combo boxes, radio buttons and checkboxes.

The Window Controls functions return values based on the result of processing QuickScript functions. The return value is used for error diagnostics. You can assign these values to integer tag names. For example:

ErrorNumber = wcGetItem("ControlName", Number, Tagname);

In this script, ErrorNumber is an integer tag that contains the returned error value. The returned value of the function can be passed to the wcErrorMessage(). The wcErrorMessage() will return a string description of the error. For example:

ErrorMsg = wcErrorMessage(ErrorNumber);

In this script, ErrorMsg is a message type tag that contains the text of the returned error. The following table identifies numeric error values and their definitions.

Error Message

Definition

0

Success

-1

General failure

-2

Insufficient memory available

-3

Property is read-only

-4

Specified item already present

-5

Object name unknown

-6

Property name unknown

-x

Unknown error.

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