ResultSet.columns() (Method)

Return the number of columns in the result set.

Availability:

JavaScript - 1.2
Netscape Enterprise Server - 3.0
Property/method value type:Number primitive
JavaScript syntax:NESmyResultSet.columns()

If your tables are being modified in the database or you are changing the way the result set is requested, the number of columns may be indeterminate until you actually make the request. This method provides a column count so you can enumerate through the columns to extract the values from them.

See also:Stproc.outParamCount()