Click or drag to resize

MemVarGetSym Function

Return the contents of a memory variable.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.10
Syntax
 FUNCTION MemVarGetSym(
	symVar AS SYMBOL
) AS USUAL
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#
cPrivate := "hi"
cHasName := "cPrivate"
// Instead of ? &cHasName, use this:
? MemVarGet(cHasName)                        // hi
See Also