Product Documentation

FairCom Direct SQL for C and C++

Previous Topic

Next Topic

ctsqlGetRow

Retrieve and position to the nth row of the resultset with 1 being the first row.

Declaration

CTSQLRET ctsqlGetRow(pCTSQLCURSOR hCursor, INTEGER nth)

Description

  • hCursor - the cursor handle
  • nth - the nth row retrieve relative to the current position. nth must be positive.

If the movement goes beyond the resultset first or last row, the operation returns CTSQLRET_NOTFOUND (100) and the current position is set either before (if moving backward) or after the last row (if moving forward).

Return Values

CTSQLRET_OK on success.

See c-tree Plus Error Codes for a complete listing of valid c-tree Plus error values.

TOCIndex