__MVGET()
This function returns value of memory variable
- Syntax
-
- __MVGET( <cVarName> ) --> <xVar>
- Arguments
-
- <cVarName> - string that specifies the name of variable
- Returns
-
- <xVar> The value of variable
- Description
-
- This function returns 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.
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