Returns the number of the current command within a command batch.
INT dbcurcmd ( PDBPROCESS dbproc );
where
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.
dbcmdrow, dbmorecmds, dbresults, dbrows, dbsqlexec, dbsqlsend