getErrorDpName()

Returns the data point name from getLastError().

Synopsis

string getErrorDpName(errClass err | dyn_errClass err);

Parameters

Parameter Description
err Return value from getLastError(). The parameter dyn_errClass returns the element of the LAST (!!) error that occurred.

Return value

The function returns the data point name relating to an error.

Error

Missing or invalid argument

Description

The value returned from the Control functiongetLastError() defines an error class that is composed of several attributes. From this, the data point name can be filtered out, for example, with getErrorDpName().

Example

main()
{
  dyn_errClass err;
  string dpName;
  err = getLastError();
  dpName = getErrorDpName(err);
  DebugN("data point " ,dpName," is erroneous");
}

Assignment

Errors

Availability

CTRL