New topic: Is there a way to detect if a database is open?
<http://forums.realsoftware.com/viewtopic.php?t=38374> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message jjfcpa Post subject: Is there a way to detect if a database is open?Posted: Tue Mar 29, 2011 8:03 am Joined: Tue Apr 17, 2007 9:19 pm Posts: 270 Ran into a problem that caused me to waste a couple of hours trying to resolve it. Here is what was going on. We have a class for our windows and in the open of the class, there is some code to put the window in the same place (and in the same size) as when it was last closed. The information to accomplish this is saved in a application database. Unfortunately, our RaiseEvent was placed before this code, so it was opening and closing the administrative database AFTER the database was being opened in the open event of the window used to allow the user to set some preferences - which are also saved in this administrative database. There is a place in this window where the user can add some new records to a table in the administrative database, however, the table never resulted in any records being added to the table even though there was never any error reported. The whole problem was caused by the fact that the administrative database was being opened in the open event of the window, then closed in the open event of the class the window was created from. It would have been nice if there was a way programmatically to tell if the database was opened or closed. Is there a way to do this??? Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
