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

  1. .Na "dbnumcols" 
  2. .Aa
  3. .Fu
  4. Determine the number of regular columns for the current set of results.
  5. .Ih "results row, number of columns in"
  6. .Sy
  7. .Sf "int dbnumcols(dbproc)"
  8. .Sp "DBPROCESS" "*dbproc"
  9. .Co
  10. .Bl
  11. .I "dbnumcols()"
  12. returns the number of regular (\f2i.e.,\f1 non-compute) columns in the current set of results.
  13. .Bl
  14. Here's a program fragment that illustrates the use of \f2dbnumcols()\fP:
  15. .ta +4n +4n +4n +4n +4n +4n
  16. .SD
  17. .so dbnumcols.ex
  18. .ED
  19. .Bz
  20. .Pa
  21. .Pi dbproc
  22. A pointer to the DBPROCESS structure that provides the connection
  23. for a particular front-end/\*S process.  It contains all the
  24. information that \*L uses to manage communications and data between the
  25. front end and \*S.
  26. .in -.375i
  27. .Re
  28. .br
  29. The number of columns in the current set of results.  If there
  30. are no columns, \f2dbnumcols()\f1 returns 0.
  31. .Sa
  32. dbcollen,
  33. dbcolname,
  34. dbnumalts
  35.