Returns information about a client cursor, a transparent server cursor, or an explicit server cursor.
RETCODE dbcursorinfoex(
PDBCURSOR hc,
LPDBCURSORINFO pdbcursorinfo )
hc
Is a PDBCURSOR pointer to a server cursor returned by dbcursoropen.
pdbcursorinfo
Is a pointer to a DBCURSORINFO structure that DB-Library will fill with information about the specified cursor.
The DBCURSORINFO structure is defined as follows:
typedef struct
{
DBINT SizeOfStruct;
ULONG TotCols;
ULONG TotRows;
ULONG CurRow;
ULONG TotRowsFetched;
ULONG Type;
ULONG Status;
} DBCURSORINFO, PTR LPDBCURSORINFO;
The DBCURSORINFO fields are described in the table.
Field | Description |
---|---|
SizeOfStruct | Before calling dbcursorinfoex, set this field equal to the value returned by the C sizeof function for the DBCURSORINFO structure. |
TotCols | Is the total number of columns in the cursor. |
TotRows | Is the total number of rows in the cursor result set.
Client cursor: Transparent server cursor, explicit server cursor: |
CurRow | Is the row number within the cursor result set of the current cursor position (first row of the fetch buffer). The first row of the cursor result set is number 1.
Client cursor: Transparent server cursor, explicit server cursor: |
TotRowsFetched | Is the total number of valid rows in the current fetch buffer. |
Type | Is a bitmap of cursor type, scroll option, and concurrency control information. It is a series of the following values joined in a logical OR:
Type: Scroll option: Concurrency control: |
Status | Bitmap of status information. It is a series of the following values joined in a logical OR:
Client cursor: Transparent server cursor, explicit server cursor: |
SUCCEED or FAIL.
Before calling dbcursorinfoex, set the SizeOfStruct field equal to the value returned by the C sizeof function for the DBCURSORINFO structure. The dbcursorinfoex function fills the supplied DBCURSORINFO structure with information about the open server cursor.