Method Context():setCargo() Professional

Store a value in the session.

Syntax
:setCargo( <cName>|<xValue>[, <xValue>] ) --> lSuccess
Parameters
<cName>
<cName> the symbolic name under which the value <xValue>is stored.
<xValue>
<xValue> can be of any Xbase++ data type to be stored. If <xValue>is passed as second parameter then the symbolic name must be passed as first parameter.
Return

The method returns .T. (true) if the value could have been stored, otherwise .F. (false) is returned.

Description

Stores the value <xValue> until a session is closed. The value may be of any Xbase++ data type and can be associated with a string <cName>serving as a symbolic name. In this case, the symbolic name must be passed as first parameter and the value as second parameter.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.