Page 1 of 1

File In Use

PostPosted: Fri May 24, 2013 3:00 am
by acwoo1
Hi

1. How can I check whether a file is being used ?

2. How can I check whether an index file is being used.

Thanks
ACWoo
FWH1304+bcc582+Harbour

Re: File In Use

PostPosted: Fri May 24, 2013 3:13 am
by nageswaragunupudi
Try opening the dbf in exclusive mode.
If you succeed it is not in use by others and if you fail it is being used by others.

Re: File In Use

PostPosted: Fri May 24, 2013 10:32 am
by acwoo1
Thanks

I think I saw somewhere I can check whether a file is being used without opening it in exclusive mode.

Regards
ACWoo

Re: File In Use

PostPosted: Fri May 24, 2013 10:34 am
by nageswaragunupudi
In ADS, yes.

Re: File In Use

PostPosted: Fri May 24, 2013 11:22 am
by acwoo1
Thanks

In ADS, do I have to rewrite all the codes ?

Regards
ACWoo

Re: File In Use

PostPosted: Fri May 24, 2013 12:02 pm
by nageswaragunupudi
Not necessary.