background image
<< Evaluating Error Codes | Handling Errors >>
<< Evaluating Error Codes | Handling Errors >>

evaluate the return code

Database Vuser Scripts · Developing Database Vuser Scripts
Creating Vuser Scripts
Chapter 9, page 155
You can evaluate the return code of an LRD function to determine if the function
succeeded. The following script segment evaluates the return code of an lrd_fetch
function:
static int rc;
rc=lrd_fetch(Csr15, -13, 0, 0, PrintRow4, 0);
if (rc==0)
lr_output_message("The function succeeded");
else
lr_output_message("The function returned an error code:%d",rc);