GetColumn<DataType>

Description

All of the GetColumn<DataType> methods have two syntaxes; one that takes a String argument for the name of the column in the cursor, and one that takes an int argument for the number of the column in the cursor. These methods can be used in JSP Web targets only.

Applies to

PSCursorClass objects

Syntax

cursorobject.GetColumnBoolean ( String strColName )
cursorobject.GetColumnBoolean ( int iCol )
cursorobject.GetColumnByte ( String strColName )
cursorobject.GetColumnByte ( int iCol )
cursorobject.GetColumnDouble ( String strColName )
cursorobject.GetColumnDouble ( int iCol )
cursorobject.GetColumnFloat ( String strColName )
cursorobject.GetColumnFloat ( int iCol )
cursorobject.GetColumnInt ( String strColName )
cursorobject.GetColumnInt ( int iCol )
cursorobject.GetColumnLong ( String strColName )
cursorobject.GetColumnLong ( int iCol )
cursorobject.GetColumnShort ( String strColName )
cursorobject.GetColumnShort ( int iCol )
cursorobject.GetColumnString ( String strColName )
cursorobject.GetColumnString ( int iCol )

Argument

Description

cursorobject

A variable that contains a reference to an instance of PSCursorClass

strColName

Name of the column for which you want to obtain the value

iCol

Number of the column for which you want to obtain the value

Returns

Corresponds to the datatype in the method name.

Usage

Use in conjunction with the GetColumnType method to obtain values in a cursor. For JSP targets, you cannot use GetValue to obtain column values in a cursor.

See also

GetColumnType