errorDialog()

Displays an error dialog.

Synopsis

int errorDialog(dyn_errClass error)

int errorDialog(errClass error)

Parameters

Parameter Meaning
error Error message, for example, from getLastError().

Return value

The function returns 0 in normal operation or in the event of an error -1.

Error

An error is, for example emRetrieveMail(), an invalid or missing argument.

Description

Displays an error dialog with the messages corresponding to the input parameter. Possible error texts are contained in the directory <wincc_oa_path>/msg/<lang> in the file _errors.cat. Errors are usually queried with getLastError().

Example

main()
{
  dyn_errClass err;
  dpSetWait("dp1.:_default.._value", 123);
  err = getLastError();
  // Call dialog
  if (dynlen(err))
    errorDialog(err);
}

Assignment

Error functions

Availability

UI