How can I find out whether the file or database
- Eugene Lutsenko
- Posts: 1649
- Joined: Sat Feb 04, 2012 2:23 am
- Location: Russia, Southern federal district, city of Krasnodar
- Contact:
How can I find out whether the file or database
How can I programmatically find out whether the file or database open
Re: How can I find out whether the file or database
Hi,
You can use select() if you know the alias. Otherwise you can try to open the file and check for an error.
Open it exclusive with dbusearea() of use fopen() for the check.
You can use select() if you know the alias. Otherwise you can try to open the file and check for an error.
Open it exclusive with dbusearea() of use fopen() for the check.
- sdenjupol148
- Posts: 151
- Joined: Thu Jan 28, 2010 10:27 am
- Location: NYC
Re: How can I find out whether the file or database
Hello Eugene,
Look up the function 'Used()' in the Alaska documentation.
Calling Used(<Alias Name>) will return TRUE if the database is open and FALSE if it is not.
Good luck!
Bobby
Look up the function 'Used()' in the Alaska documentation.
Calling Used(<Alias Name>) will return TRUE if the database is open and FALSE if it is not.
Good luck!
Bobby
- Eugene Lutsenko
- Posts: 1649
- Joined: Sat Feb 04, 2012 2:23 am
- Location: Russia, Southern federal district, city of Krasnodar
- Contact: