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 |
Integer
At runtime, GetColumnCount calls the getColumnCount method on the ResultSetMetaData object.
The following code retrieves the number of columns in the “mycursor” object:
columncount = mycursor.GetColumnCount();