Function CSPSession::SetValue()

Description:
Sets the value for a variable.

Prototype:
void SetValue(const CSPString& strName, const CSPVariant& varValue);

Arguments:
  • const CSPString& strName [IN]
    The name of the variable.

  • const CSPVariant& varValue [IN]
    The new value of the variable.



Return value:
No return value (void).

Remarks:
If the variable does not exists, it is first automatically created and then assigned the new value.
Also, instead of using SetValue, you can use the member function operator():

Session( "varname" ) = varValue;

Examples:
Response.SetValue( "username", "George" );

See also:
member functions operator () (), GetValue().
CSPSession | Intrinsic objects and classes | Class Categories | Online help home | Back

www.micronovae.com

Copyright © 2002 - 2005 Micronovae Ltd