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

AVEVA™ InTouch HMI

wcErrorMessage() Function

  • Last UpdatedJul 25, 2024
  • 1 minute read

Returns a message string describing the error.

Category

windows control

Syntax

ErrorMessage=wcErrorMessage(ErrorNumber);

Parameters

ErrorMessage

Message tagname.

ErrorNumber

Number returned by all windows control functions. Any number or Integer tagname.

Remarks

For a list of returned error numbers, see Understand windows controls error messages.

Applies To

List boxes, text boxes, combo boxes, checkboxes and radio buttons.

Example(s)

If an error occurs while a list is being loaded, show the text description of the error into the ErrorDescription message tagname. In this example, a Value Display animation link is assigned to the ErrorDescription tagname to show the error message.

In the "On Show" window QuickScript:

ErrorNumber=wcLoadList("ListBox_1","c:\recipe.txt");

ErrorDescription=wcErrorMessage(errornumber);

You can use this function with all windows control functions to show error messages:

ErrorNumber=wcAddItem("ListBox_1","AM_4A4356");

ErrorMsg=wcErrorMessage(ErrorNumber);

 

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