Share this page

# lrd_msg

Issues a database message.

    LRDRET lrd_msg( int miMsgClass, char *mpszMsg );

miMsgClass | A message class.
mpszMsg | A pointer to a message to be sent to the log file. You can use the standard formatting conventions that are available for printf.

The lrd_msg function lets you to send a database message to the log file, output.txt. The message is sent to the log file only when the specified message class matches the settings in the Log runtime settings. For example, if you have "Brief Log" selected in the runtime settings, then only debug messages assigned to the brief class will appear.

For more details refer to the Function Header File lrd.h in the include directory.

## Return Values

See LRD Return Values.

## Parameterization

You cannot use standard parameterization for any arguments in this function.

## Example

In the following example, lrd_msg sends a message to the log file that appears only when the "Extended" option is enabled in the Log runtime settings.

Copy code

    rc = lrd_fetch(Csr1, 1, 1, 0, PrintRow3);

    if (rc==2006)
        lrd_msg(LR_MESSAGE_CLASS_FULL_TRACE, "The column number is invalid" );

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: