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) |
|
A session variable |
Retrieves the value of a column in a cursor.
Obsolete 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.
PSCursorClass objects
cursorobject.GetValue( field )
The value of the specified column
Retrieves the value of a session variable.
PSSessionClass object
psSession.GetValue( propname )
Argument |
Description |
---|---|
propname |
The name of a session variable |
String. Returns the value of the specified session variable. If the property does not exist, GetValue returns null.
At runtime, GetValue accesses a user-defined property of the session object.
The following example retrieves the values of the UserID and Password session variables:
userid = psSession.GetValue("UserID");
password = psSession.GetValue("Password");