Important: The information in this document is obsolete and should not be used for new development.
GXGetValidationError
You can use theGXGetValidationErrorfunction to determine the application function and parameter that caused the last validation error.
void GXGetValidationError(char *procedureName, void **argument, long *argumentNumber);
procedureName- A pointer to the name of the function that produced the validation error.
argument- A pointer to a list of the function's arguments.
argumentNumber- A pointer to the number of the argument that produced the validation error.
DESCRIPTION
TheGXGetValidationErrorfunction provides the name of the function, a list of the function's parameters, and the number of the parameter that produced the last validation error. TheargumentNumberparameter for the nth parameter is n. For example, theargumentNumberfor the third parameter is 3. If you call theGXGetValidationErrorfunction and no validation errors have been posted, the function returnsnil.This function leaves its arguments unchanged in the non-debugging version of QuickDraw GX.
SEE ALSO
The use of theGXGetValidationErrorfunction is described in the section "Analyzing the Cause of Validation Errors" beginning on page 4-21.