Previous Topic: $ERRORSTMT FunctionNext Topic: $ERRORTYPE Function


$ERRORSUBSCRIPT Function

This function returns the position of the subscript (1, 2, or 3) on a subscript error. Otherwise, N/A is returned.

Note: $ERROR functions return meaningful data only in the error procedure or in a procedure or subprogram invoked by the error procedure. In the case of a database error, $ERROR functions can also return meaningful data in the scope of a WHEN ERROR clause. You do not have to pass the $ERROR functions as parameters.