Syntax
DbFilePut( nFieldPos, cSourceFile ) --> lSuccessArguments
nFieldPos
One-based field position. cSourceFile Source file.
Return value
.T. when the field is updated successfully; otherwise .F..
Description
DbFilePut() reads an external file and stores its contents in the selected field of the current record.
Notes
The current work area must be writable and the record must be valid.
Example
PROCEDURE Main()
DbUseArea( .T., , "people.dbf", "People" )
QOut( "File put: " + IIF( DbFilePut( 1, "field.txt" ), "OK", "ERROR" ) )
DbCloseArea()
RETURNOutput