dbrowtype

DB Library for C

DB Library for C

dbrowtype

Returns the type of the current row.

Syntax

STATUS dbrowtype ( PDBPROCESS dbproc );

Arguments

dbproc

Is the DBPROCESS structure that is the handle for a particular workstation or Microsoft® SQL Server™ 2000 process. It contains all the information that DB-Library uses to manage communications and data between the workstation and SQL Server.

Returns

One of four values:

  • If the current row is a regular row, REG_ROW is returned.

  • If the current row is a compute row, the computeid of the row is returned (for more information about computeid, see dbaltbind).

  • If no rows have been read, NO_MORE_ROWS is returned.

  • If dbrowtype was unsuccessful, FAIL is returned.
Remarks

Because dbnextrow returns the type (regular or compute) of the current row, you can usually determine the row type without using dbrowtype.

See Also

dbnextrow