FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour File In Use
Posts: 175
Joined: Tue Nov 10, 2009 10:56 AM
File In Use
Posted: Fri May 24, 2013 03: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

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: File In Use
Posted: Fri May 24, 2013 03: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
Posts: 175
Joined: Tue Nov 10, 2009 10:56 AM
Re: File In Use
Posted: 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

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: File In Use
Posted: Fri May 24, 2013 10:34 AM

In ADS, yes.

Regards



G. N. Rao.

Hyderabad, India
Posts: 175
Joined: Tue Nov 10, 2009 10:56 AM
Re: File In Use
Posted: Fri May 24, 2013 11:22 AM

Thanks

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

Regards
ACWoo

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: File In Use
Posted: Fri May 24, 2013 12:02 PM

Not necessary.

Regards



G. N. Rao.

Hyderabad, India

Continue the discussion