procedure setMemoBuf(field : Integer; src : Pointer; len : Integer);

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
    dbf.setFieldString(0, 'string value');
    dbf.setMemoBuf(2, memo_data, length(memo_data));
    // your code