getErrorUserId()

Returns the identification number of the user from the error class from getLastError().

Synopsis

int getErrorUserId(errClass err | dyn_errClass err);

Parameters

Parameter Description
err Return value from getLastError(), dyn_errClass returns the element of the LAST (!!) error that occurs.

Return value

The function returns a numeric value that represents the user ID.

Error

If no error has occured.

Description

The value returned from the Control function getLastError() defines an error class that is composed of several attributes. From this, the user Id can be filtered out, for example, with getErrorUserId().

Example


main()
{
  dyn_errClass err;
  int errUserId;
  err = getLastError();
  errUserId = getErrorUserId(err);
  DebugN("The error relates to ", errUserId);
}

Assignment

Errors

Availability

CTRL