Click or drag to resize

MemVarGetSym Function

X#
Return the contents of a memory variable.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax
 FUNCTION MemVarGetSym(
	symVar AS SYMBOL
) AS USUAL
Request Example View Source

Parameters

symVar
Type: Symbol
The name of the variable .

Return Value

Type: Usual
Remarks
MemVarGet() is used instead of a macro when the name of the variable is in a string.
Examples
This example uses MemVarGet() to retrieve the contents of a memory variable:
X#
1cPrivate := "hi"
2cHasName := "cPrivate"
3// Instead of ? &cHasName, use this:
4? MemVarGet(cHasName)            // hi
See Also