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

getLastError()

Gets the last error that occurred.

Synopsis

dyn_errClass getLastError();

Parameters

Return value

The function returns a list of error classes.

Description

Returns the list of error classes that occurred during processing of the functions.

The following functions set the error class list in the event of an error:

The following functions do NOT set the error class list in the event of an error:

IconExample

The following example sets the error class list for a dpWaitForValue event.

main()
{
   time t = 1;
   dyn_errClass err;
   dyn_string wait;
   dyn_string ret;
   dyn_anytype conditions;
   dyn_anytype target;
   conditions[1] = false;
   wait = makeDynString("test.b:_original.._value");
   ret = makeDynString("test_0.b:_original.._value");
   dpWaitForValue(wait,conditions,ret,target,t);
   err = getLastError(); //test whether no errors
  if(dynlen(err) > 0)
  {
     errorDialog(err);
    // open dialog box with errors
   throwError(err); // write errors to stderr
  }
  else
  {
    DebugN("OK"); //no errors
  }
}

Member of

Errors

Availability

UI, CTRL, DP

See also

Top Of Page

 

V 3.11 SP1

Copyright ETM professional control GmbH 2013 All Rights Reserved