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.3b
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#
 1USE region1 NEW
 2nSelect1 := VODBGetSelect()
 3USE region2 NEW
 4nSelect2 := VODBGetSelect()
 5VODBSetSelect(nSelect1)
 6_FIELD->FName := "Kate"
 7VODBSetSelect(nSelect2)
 8_FIELD->FName := "Cindy"
 9// The following line prints Kate
10? FieldGetArea(nSelect1, #FNAME)
11// The following line prints Cindy
12? FieldGetArea(nSelect2, #FNAME)
See Also