standard.db.sql.ODBCCountColumns

ODBCCountColumns is available since version 1.0.

Prototype:

number ODBCCountColumns(number statement)

Parameters

statement
[in] the statement handle (or result set) as returned by ODBCStatement, ODBCListTables, ODBCListColumns, ODBCListTypes or ODBCExecuteQuery

Description:

Get the number of columns in the current result set.

Return value:

Returns -1 if failed (call ODBCError to retrieve the error) or the number of the columns in the given result set if succeeded.