home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer) / NeXT_Developer-3.3.iso / NextLibrary / Documentation / Sybase / DBLIB / Section2 / dbcurcmd.nr < prev    next >
Encoding:
Text File  |  1993-04-22  |  855 b   |  36 lines

  1. .Na "DBCURCMD" 
  2. .Aa
  3. .Fu
  4. Return the number of the current command.
  5. .Ih "command, returning the number of the current"
  6. .Sy
  7. .Sf "int DBCURCMD(dbproc)"
  8. .Sp "DBPROCESS" "*dbproc"
  9. .Co
  10. .Bl
  11. This macro returns the number of the command whose results
  12. are currently being processed.
  13. .Bl
  14. The first command in a batch
  15. is number 1.  The command number is incremented every time
  16. .I "dbresults()"
  17. returns SUCCEED or FAIL.
  18. (Unsuccessful commands are counted.)
  19. The command number is reset by each call to \f2dbsqlexec()\f1 or \f2dbsqlsend()\f1.
  20. .Bz
  21. .Pa
  22. .Pi dbproc
  23. A pointer to the DBPROCESS structure that provides the connection
  24. for a particular front-end/\*S process.  It contains all the
  25. information that \*L uses to manage communications and data between the
  26. front end and \*S.
  27. .Bz
  28. .in -.375i
  29. .Re
  30. .br
  31. The number of the current command.
  32. .Sa
  33. DBCMDROW,
  34. DBMORECMDS,
  35. DBROWS
  36.