GetValue

Retrieves the value of a column in a cursor or retrieves the value of a session variable.

To get the value of

Use

A column in a cursor (obsolete)

Syntax 1 For PSCursorClass objects

A session variable

Syntax 2 For the PSSessionClass object


Syntax 1 For PSCursorClass objects

Description

Retrieves the value of a column in a cursor.

NoteObsolete syntax This method syntax is obsolete. It was previously used with ASP and PowerDynamo Web targets. For JSP targets, use the GetColumn<DataType> methods instead, where <DataType> is the datatype of the value you want to retrieve.

Applies to

PSCursorClass objects

Syntax

cursorobject.GetValue( field )

Returns

The value of the specified column


Syntax 2 For the PSSessionClass object

Description

Retrieves the value of a session variable.

Applies to

PSSessionClass object

Syntax

psSession.GetValue( propname )

Argument

Description

propname

The name of a session variable

Returns

String. Returns the value of the specified session variable. If the property does not exist, GetValue returns null.

Usage

At runtime, GetValue accesses a user-defined property of the session object.

Examples

Example 1

The following example retrieves the values of the UserID and Password session variables:

userid = psSession.GetValue("UserID");
password = psSession.GetValue("Password");