Function CSPSession::GetValue()

Description:
Retrieves the variable that is requested.

Prototype:
CSPVariant& GetValue(const CSPString& strVarName);

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



Return value:
Returns a reference of the variable requested.

Remarks:
If the variable does not exist, it is first automatically created as an empty variant, and then returns the reference of the newly created variable.

Examples:
CSPVariant& varUsername = Session( "username" );
Session( "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