db_msgdump

Displays last database error message in a window.

Available in:

Apps (win) Apps (char) Reportwriter RPC Standalone PL
X X      

Syntax

void db_msgdump(row,col)
int             row,col

Description

Displays the last database error message in a dialog box and waits for the user to acknowledge the message.
row specifies the row position for the displayed window. -1 places the upper left of the box at the cursor position. -2 places the box in the center of the screen.

col specify column location of the view box; -1 places the upper left of the box at the cursor position. -2 places the box in the center of the screen.

Example

Displays database error message and wait for the user to acknowledge.
if (g.error_code == err_DB) db_msgdump(3,4);