File In Use

File In Use

Postby acwoo1 » Fri May 24, 2013 3:00 am

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
acwoo1
 
Posts: 173
Joined: Tue Nov 10, 2009 10:56 am

Re: File In Use

Postby nageswaragunupudi » Fri May 24, 2013 3:13 am

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.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10632
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: File In Use

Postby acwoo1 » Fri May 24, 2013 10:32 am

Thanks

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

Regards
ACWoo
acwoo1
 
Posts: 173
Joined: Tue Nov 10, 2009 10:56 am

Re: File In Use

Postby nageswaragunupudi » Fri May 24, 2013 10:34 am

In ADS, yes.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10632
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: File In Use

Postby acwoo1 » Fri May 24, 2013 11:22 am

Thanks

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

Regards
ACWoo
acwoo1
 
Posts: 173
Joined: Tue Nov 10, 2009 10:56 am

Re: File In Use

Postby nageswaragunupudi » Fri May 24, 2013 12:02 pm

Not necessary.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10632
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 93 guests