_DBReplace( ) places a new value in a field.
Syntax
int _DBReplace(Locator FAR *fld, Value FAR *val)
Locator FAR *fld; /* Field to be replaced. */
Value FAR *val; /* Value to be placed in field. */
Remarks
_DBReplace( ) returns 0 if the replacement is successful. If the replacement fails, _DBReplace( ) returns a negative integer whose absolute value is a Visual FoxPro error number. _DBReplace( ) can be used on a memo field to replace its value with a new value that's shorter than 65,000 bytes. To perform operations on memo fields that are larger than 65,000 bytes, you must use direct memo field routines and buffered file input/output routines.
For more information on how to create an API library and integrate it with Visual FoxPro, see Chapter 28, Accessing the Visual FoxPro API, in the Programmer's Guide.