__MVPUT()
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 ) ) }
- Status
Ready
- Compliance
- This function is a Harbour extension
- Files
- Library is vm
- See Also