mb_get_error_pos

Previous  Next

 

void mb_get_error_pos( int row, int col, char* lpszRow, char* lpszCol )

 


 

Returns the row and/or column where the error occurred as strings.  You can set either of the output strings to NULL if any of them are not desired.  If both row and col are set to -1 the current error positions are used.

 

Example

 

char szRow[32];

char szCol[32];

 

mb_get_error_pos( -1, -1, szRow, szCol );

 

printf( "ERROR, %s at Row %s, Col %s\n",

       mb_get_error_desc( mb_get_last_error( s ) ),

       szRow,

       szCol );