Click or drag to resize

VarPutSym Function

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

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

Parameters

symVar
Type: SYMBOL
The name of the variable .
uValue
Type: USUAL
The value to assign to the variable

Return Value

Type: USUAL
Remarks
If a field or memory variable with the specified name does not exist, then a new a memory variable is created. This function like MemVarPut(), can be used to create undeclared memory variables. It should be used instead of a macro.
See Also