>I'm writing a routine to open a file exclusively. If I find the file is already open, how can I tell whether it is opened exclusively other than by closing it and trying to opening it exclusively, trapping for error?
>
>TIA,
>
>Alex
Hi Alex,
You may use SYS(2011) function to retrieve lock status:
If Sys( 2011) = "Exclusive"
EndIf
HTH
Alex