Accessing the Messages

You can determine the current string for any given validation error code, error code, or index into the informational array with the following set of functions.

To access the informational messages, use:

UCHAR *vv_infomsg(index)

int index;    /* Index into array of messages        */

To access the error messages, use:

UCHAR *vv_errmsg(index)

int index;    /* Index into array of messages        */

In this case the index into the array is the value of VV_ERR.

To access the validation error messages, use:

UCHAR *vv_valmsg(index)

int index;    /* Index into array of messages        */

In this case the index into the array is the value of VAL_ERR.

To display the message corresponding to the current value of the error code in a window, use:

v_st(vv_errmsg(VV_ERR), wnp);


Home Contents Previous Next