Click or drag to resize

MemVarPutSym Function

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

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

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