>What is the best way to emulate begin atomic in VFP code? Flock() on affected files (shudder)?
I don't know which language "begin atomic" comes from, or what it does. Is that the start of a transaction? If so, look at the BEGIN TRANSACTION command. If not, and no one else knows, you need to explain what this command does.