Then use on error. I posted my OpenTble function here before, please search for this.
>In this particular app, I am stuck with VFP 6.0 due to the operating system requirement. I don't think that VFP 6.0 has Try/Catch, does it? I cannot upgrade the particular machine that this program will run on until I also upgrade the DOS Hand-Held Barcode Scanners to Windows Scanners.
>
>>For a table forget about FOPEN, use try/catch as I suggested. Now, what if the file you're trying to append from is also opened by someone? Though AFAIK it should not give your a problem.
>
>>Just wrap the whole code in try/catch.
>
>>If you want to be able to retry, then it's a different story, need to think a bit more, but currently working on something else.
If it's not broken, fix it until it is.
My Blog