Return the number of the current command.
int DBCURCMD(dbproc) DBPROCESS *dbproc;
A pointer to the DBPROCESS structure that provides the connection for a particular front-end/server process. It contains all the information that DB-Library uses to manage communications and data between the front end and server.
The number of the current command.
This macro returns the number of the command whose results are currently being processed.
The first command in a batch is number 1. The command number is incremented every time dbresults returns SUCCEED or FAIL. (Unsuccessful commands are counted.) The command number is reset by each call to dbsqlexec or dbsqlsend.