Share this page

# lrd_close_context

Closes a context (CtLib and ODBC).

    LRDRET lrd_close_context( LRD_CONTEXT **mpptContext, longmliOption, int miDBErrorSeverity );

mpptContext | A pointer to a pointer to an LRD_CONTEXT structure.
mliOption | One of the Close Context Options.
miDBErrorSeverity | The Error Severity Levels of a failure in a database routine.

The lrd_close_context function closes a context for a ctlib function.

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_close_context closes the open context structure, Ctx1.

    lrd_close_cursor(&Csr1, Con1, 0);

    /* Close all connections even whose results are pending */
    lrd_close_context(&Ctx1, LRD_CLOSE_CONTEXT_CTLIB_OPT_FRC, 0);
    lrd_close_connection(&Con1, "", 0);

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