Share this page

# lrd_ctlib_cursor

Specifies the CtLib cursor command to initialize.

    LRDRET lrd_ctlib_cursor( LRD_CURSOR *mptCursor, char *mpcName, long mliNameLen, char *mpcText, long mliTextLen, LRDOS_INT4 mjCmdType, LRDOS_INT4 mjCmdOption, int miDBErrorSeverity);

mptCursor | A pointer to an LRD_CURSOR structure.
mpcName | A pointer to the statement identifier.
mliNameLen | The length of the text pointed to by mpcName (negative for null-terminated).
mpcText | A pointer to the string containing the request specification.
mliTextLen | The length of the text pointed to by mpcText (negative for null-terminated).
mjCmdType | The type of cursor command to initiate: LRD Cursor Types
mjCmdOption | An option for the specified cursor command type: CtLib Cursor Options
miDBErrorSeverity | The Error Severity Levels of a failure in a database routine.

The lrd_ctlib_cursor function specifies a CtLib cursor command to initialize. This function specifies the command type and its applicable option.

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

## Return Values

See LRD Return Values.

## Parameterization

The following arguments can be parameterized using standard parameterization: mpcName, mpcTex

## Example

In the following example, lrd_ctlib_cursor specifies a CtLib cursor command for Cursor 3. The command is executed by lrd_exec.

    lrd_ctlib_cursor(Csr3, "", -1, "", -1, 707, -99999, 1);
    lrd_exec(Csr3, 0, 0, 0, 0, 1);
    lrd_result_set(Csr3, 1 /*Succeed*/, 4046 /*Done*/, 1);

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: