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

Integer

Usage

At runtime, GetColumnCount calls the getColumnCount method on the ResultSetMetaData object.

Examples

Example 1

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

columncount = mycursor.GetColumnCount();

See also

CreateCursor