>If you are inserting into a local table, and are worried about performance, why don't you setup a routine such as the following:
>
>DO WHILE !RLOCK("0",SELECT())
> WAIT WINDOW "Attempting Insert..." TIMEOUT 1 && or equivalent
>ENDWHILE
>INSERT INTO ...
>UNLOCK RECORD 0
>
>This code will attempt to lock the header (which I believe is necessary to insert records), insert and then unlock the file header.
Yes, this is a good piece of code. But, I don't want to put it everywhere. I want VFP to reprocess the lock until it succeed by itself. Thanks.