../pvss.htm menu.gif basics.gif

errorDialog()

Displays an error dialog.

Synopsis

int errorDialog(dyn_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, 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().

IconExample

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

Assignment

Error

Availability

UI

See also

makeError(),throwError(), Error handling

Top Of Page

 

V 3.11 SP1

Copyright ETM professional control GmbH 2013 All Rights Reserved