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.0
Syntax
 FUNCTION MemVarGetSym(
	symVar AS SYMBOL
) AS USUAL

Parameters

symVar
Type: SYMBOL
The name of the variable .

Return Value

Type: USUAL
The value of the memory variable. When there is no memory variable with that name then a runtime error is thrown.
Remarks
Tip Tip
Dynamic memory variables (PUBLIC, PRIVATE, PARAMETERS) are supported in the X# language and runtime for compatibility only.
In most cases the type can and should be replaced with lexically scoped variables, such as LOCALs and GLOBALs.
See Also