void setMemoBuf(cdbfapiPlus* handle, int fieldno, char *input, int len);

Function setMemoBuf() writes data to a memo field.
The content of memo file is stored in external file, usually with .fpt or .dbt extension.
First this function writes the data to this file and then it write a reference to .dbf file.
If you want to write down usual fields and memo fields, the right way is to write usual fields first, and then memo fields.
After this if you want to continue to work with the same record - re-read it.


{
    // your code
    clearRecord(dbf);
    setFieldString(dbf, 0, "string value");
    writeRecord(dbf, 0);
    setMemoBuf(dbf, 2, memo_data, strlen(memo_data));
    // your code
}