Syntax
FieldPut( nField, expAssign ) --> ValueAssignedArguments
nField
One-based field position. expAssign New field value.
Return value
The value assigned to the field.
Description
FieldPut() writes expAssign into a field of the current record by ordinal position.
Notes
The work area must be writable. Call DbCommit() to flush the update.
Example
PROCEDURE Main()
DbUseArea( .T., , "people.dbf", "People" )
QOut( "Assigned: " + RTrim( FieldPut( 1, "Anna" ) ) )
DbCommit()
DbCloseArea()
RETURNOutput