VarGetSym Function | |
Return the contents of a field or a memory variable.
Namespace:
XSharp.RT
Assembly:
XSharp.RT (in XSharp.RT.dll) Version: 2.21
Syntax [NeedsAccessToLocalsAttribute(FALSE)]
FUNCTION VarGetSym(
symVar AS SYMBOL
) AS USUAL
[NeedsAccessToLocalsAttribute(false)]
public static Usual VarGetSym(
Symbol symVar
)
Request Example
View SourceParameters
- symVar
- Type: Symbol
The name of the variable .
Return Value
Type:
UsualRemarks
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:
1LOCAL cFieldName := "Address"
2USE Customer
3
4? VarGet(cFieldName)
See Also