How can I find out whether the file or database

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
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

#1 Post by Eugene Lutsenko »

How can I programmatically find out whether the file or database open

skiman
Posts: 1199
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: How can I find out whether the file or database

#2 Post 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.
Best regards,

Chris.
www.aboservice.be

User avatar
sdenjupol148
Posts: 151
Joined: Thu Jan 28, 2010 10:27 am
Location: NYC

Re: How can I find out whether the file or database

#3 Post 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


Post Reply