Retrieves the number of columns in a cursor.
PSCursorClass objects
cursorobject.GetColumnCount( )
Argument |
Description |
---|---|
cursorobject |
A variable that contains a reference to an instance of PSCursorClass |
Number. Returns an int for JSP Web targets.
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 |
The following example retrieves the number of columns in the “mycursor” object:
columncount = mycursor.GetColumnCount();