Click or drag to resize

VarGetSym Function

Return the contents of a field or a memory variable.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.08
Syntax
 FUNCTION VarGetSym(
	symVar AS SYMBOL
) AS USUAL
View Source

Parameters

symVar
Type: Symbol
The name of the variable .

Return Value

Type: Usual
Remarks
VarGet() is used instead of a macro when the name of the field or memory variable is in a string.
Examples
This example uses VarGet() to retrieve the contents of a field:
X#
LOCAL cFieldName := "Address"
USE Customer
// Instead of ? &cFieldName, use this:
? VarGet(cFieldName)        // 101 5th Street
See Also