Click or drag to resize

FieldGetArea Function

Get the contents of a field that is identified by its work area and a symbol.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.08
Syntax
 FUNCTION FieldGetArea(
	dwWorkArea AS DWORD,
	symFieldName AS SYMBOL
) AS USUAL
View Source

Parameters

dwWorkArea
Type: UInt32
The work area in which <symFieldName> is located.
symFieldName
Type: Symbol
A symbol that corresponds to the field name.

Return Value

Type: Usual
Remarks
By default, this function operates on the currently selected work area.  It can be made to operate on an unselected work area by specifying it within an aliased expression.
Examples
This example uses FieldGetArea():
X#
USE region1 NEW
nSelect1 := VODBGetSelect()
USE region2 NEW
nSelect2 := VODBGetSelect()
VODBSetSelect(nSelect1)
_FIELD->FName := "Kate"
VODBSetSelect(nSelect2)
_FIELD->FName := "Cindy"
// The following line prints Kate
? FieldGetArea(nSelect1, #FNAME)
// The following line prints Cindy
? FieldGetArea(nSelect2, #FNAME)
See Also