void clearRecord(cdbfapiPlus* handle);

The function clearRecord() removes all data from internal memory and fills it with zeroes (0x00) or spaces (0x20).
You can call this function before calling setField(), setMemoBuf().


{
    // your code
    clearRecord(dbf);
    setFieldString(dbf, 0, "some value");
    setFieldDouble(dbf, 1, 123.45);
    appendRecord(dbf, FALSE);
    // your code
}