Click or drag to resize

FieldGetAlias Function

X#
Get the contents of a field that is identified by a work area alias and the field name.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.21
Syntax
 FUNCTION FieldGetAlias(
	symAlias AS SYMBOL,
	symFieldName AS SYMBOL
) AS USUAL
Request Example View Source

Parameters

symAlias
Type: Symbol
The work area alias.
symFieldName
Type: Symbol
The field name.

Return Value

Type: Usual
Remarks
Examples
This example uses FieldGetAlias() to query the contents of fields in two work areas:
X#
1USE region1 NEW
2USE region2 NEW
3SELECT region1
4_FIELD->FName := "Kate"
5SELECT region2
6_FIELD->FName := "Cindy"
7QOut(FieldGetAlias(#REGION1, #FNAME))    // Kate
8QOut(FieldGetAlias(#REGION2, #FNAME))    // Cindy
See Also