GetColumnCount

Description

Retrieves the number of columns in a cursor.

Applies to

PSCursorClass objects

Syntax

cursorobject.GetColumnCount( )

Argument

Description

cursorobject

A variable that contains a reference to an instance of PSCursorClass

Returns

Number. Returns an int for JSP Web targets.

Usage

At runtime, GetColumnCount has the following behavior:

Application server

Runtime behavior

ASP

Gets the value of the Count property of the Fields collection

JSP

Calls the getColumnCount method on the ResultSetMetaData object

Examples

Example 1

The following example retrieves the number of columns in the “mycursor” object:

columncount = mycursor.GetColumnCount();

See also

CreateCursor