Syntax
FieldWBlock( cFieldName, nWorkArea ) --> bFieldWBlockArguments
cFieldName
Field name. nWorkArea Target work-area number.
Return value
A block that reads or assigns the named field in the specified work area.
Description
FieldWBlock() creates a field block bound to a work area other than the current one.
Notes
The target area and field must exist when the block is used.
Example
PROCEDURE Main()
LOCAL bName
DbUseArea( .T., , "people.dbf", "People" )
bName := FieldWBlock( "NAME", Select() )
QOut( "Name: " + RTrim( Eval( bName ) ) )
DbCloseArea()
RETURNOutput