procedure InsertRecord(dbf, r, blank :integer);

InsertRecord inserts a record to a file before the specified record. It uses information from internal memory.
The function does nothing if a table is sorted or filtered.

var dbf :integer; begin dbf := OpenBase( 'filename.dbf' ); if dbf <> 0 then begin ClearRecord(dbf); SetValue(dbf, 0, 'some string', 123.45); InsertRecord(dbf, 2); end; CloseBase(dbf); end; end.