Template
Function
Name
__mvPut()
Category
API
Subcategory
Variable management
Oneliner
This function set the value of memory variable
Syntax
__mvGet( <cVarName> [, <xValue>] ) --> <xValue>
Arguments
<cVarName> – string that specifies the name of variable <xValue> – a value of any type that will be set – if it is not specified then NIL is assumed
Returns
<xValue> A value assigned to the given variable.
Description
This function sets the value of PRIVATE or PUBLIC variable if this variable exists otherwise it generates a runtime error. The variable is specified by its name passed as the function parameter. If a value is not specified then the NIL is assumed
Examples
FUNCTION MemVarBlock( cMemvar )
RETURN {| x | ;
iif( PCount() == 0, ;
__mvGet( cMemvar ), ;
__mvPut( cMemvar, x ) ) }
Compliance
Harbour
Files
Library is core
Seealso
__mvGet()