MemVarGetSym Function | |
Return the contents of a memory variable.
Namespace:
XSharp.RT
Assembly:
XSharp.RT (in XSharp.RT.dll) Version: 2.21
Syntax [NeedsAccessToLocalsAttribute(FALSE)]
FUNCTION MemVarGetSym(
symVar AS SYMBOL
) AS USUAL
[NeedsAccessToLocalsAttribute(false)]
public static Usual MemVarGetSym(
Symbol symVar
)
Request Example
View SourceParameters
- symVar
- Type: Symbol
The name of the variable .
Return Value
Type:
UsualRemarks
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:
1cPrivate := "hi"
2cHasName := "cPrivate"
3
4? MemVarGet(cHasName)
See Also