Previous  Next


status_t mb_set_error_message_limits( uint_t nCurrent, uint_t nMax )



Limits the number of error messages that can be raised and resets the current count.  Each error that is not handled by an ON ERROR handler will call the error handler set by mb_set_error_handler and increase the current error count.  Setting the nMax to 1 will limit the number of messages displayed to the first error before the script terminates.




mb_set_error_message_limits( 0, 1 );