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

  1. .Na "DBLASTROW" 
  2. .Aa
  3. .Fu
  4. Return the number of the last row in the row buffer. 
  5. .Ih "row buffer, returning the number of its last row"
  6. .Sy
  7. .Sf "DBINT DBLASTROW(dbproc)"
  8. .Sp "DBPROCESS" "*dbproc"
  9. .Co
  10. .Bl
  11. This macro returns the number of the last row in the row buffer.
  12. Rows are counted from
  13. the first row returned from \*S, whose number is 1, and \f2not\f1 from the top of the row buffer.
  14. .Bl
  15. If you aren't buffering rows, 
  16. .I "DBFIRSTROW(), DBCURROW(),"
  17. and
  18. .I "DBLASTROW()"
  19. will always have the same value.
  20. If you have enabled buffering by setting the
  21. .I "DBBUFFER"
  22. option,
  23. .I "DBLASTROW()"
  24. will return the number of the row that is the last row in the row buffer.
  25. .Bz
  26. .Pa
  27. .Pi dbproc
  28. A pointer to the DBPROCESS structure that provides the connection
  29. for a particular front-end/\*S process.  It contains all the
  30. information that \*L uses to manage communications and data between the
  31. front end and \*S.
  32. .in -.375i
  33. .Re
  34. .br
  35. The number of the last row in the row buffer.
  36. This routine returns 0 if there's an error.
  37. .Sa
  38. dbclrbuf,
  39. DBCURROW,
  40. DBFIRSTROW,
  41. dbgetrow,
  42. dbnextrow,
  43. dbsetopt,
  44. options
  45.