Click or drag to resize

Functions.MemVarPutSym Method

Assign a value to a memory variable of a given name.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.07
Syntax
 FUNCTION MemVarPutSym(
	symVar AS SYMBOL,
	uValue AS USUAL
) AS USUAL
View Source

Parameters

symVar
Type: __Symbol
The name of the variable you want to assign to.
uValue
Type: __Usual
The value to assign to the variable.

Return Value

Type: __Usual
The value assigned to the memvar.
Remarks
If a memory variable with that name does not exits, a new memory variable is created. Therefore, MemVarPut(), like VarPut() can be used to create undeclared memory variables. It should be used instead of a macro.
See Also