To All
Just a word of caution using dbCommit() .. for just a single record dbCommit() during an update, append or deletion is fine, however, if you are updating many records in a Do While loop, you will notice dbCommit() after each update will cause your Do While loop to become extremely slow. In cases where I am making many record changes in a Do While loop, I issue dbCommit() after the loop is finished.
From the old Clipper days, it was said that if you move the record pointer it forced the workarea buffers to be flushed to disk. In cases where I am in a Do While loop appending or editing many records, I issued a dbSkip(0) after each change. DbSkip(0) technically moves the record pointer back to itself, theoretically flushing the buffers, then once the routine was complete I used dbCommit() to issue a 'hard disk' write.
Rick Lipkin