mb_add_error

Previous  Next

 

int mb_add_error( mb_interpreter_t* s, const char* str )

 


 

Adds a custom error message.  Returns the new error code associated with the message.  This is the same as calling the ADDERR() function.

 

Example

 

int nMyErrorNo = mb_add_error( bas, "My Error Message" );

 

mb_set_error( bas, nMyErrorNo );