Page 1 of 1
How can I find out whether the file or database
Posted: Tue Dec 03, 2013 9:42 am
by Eugene Lutsenko
How can I programmatically find out whether the file or database open
Re: How can I find out whether the file or database
Posted: Tue Dec 03, 2013 11:31 am
by skiman
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.
Re: How can I find out whether the file or database
Posted: Tue Dec 03, 2013 8:12 pm
by sdenjupol148
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
Re: How can I find out whether the file or database
Posted: Tue Dec 03, 2013 8:16 pm
by Eugene Lutsenko
Thank you!