>Use FLOCK(). If it returns .f., then the file cannot be locked.
>
>use myfile
>if flock()
> use myfile excl
>else
> && whatever error coding you want
>endif
>
>
This isn't reliable. Someone else can grab the file between the FLOCK() and the USE EXCLUSIVE.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer