Zeina Posted January 4, 2005 Posted January 4, 2005 Hi All, is there a way to find out if a particular db on the fmserver is open? basically I want to do the following... if (dbtest.fp5 is OPEN on the server) then .... else msg="the db is closed for repairs"... Please Help Zeina
DykstrL Posted January 4, 2005 Posted January 4, 2005 Create a script in the server file with one script step: Close[]. In your other file create this script: Allow user abort [Off] Set Error Capture [On] Perform script [sub-scripts, External "dbtest.fp5" {close script above}] If [status(CurrentError) <> 0 Show Message ["The database is closed for repairs"] {Whatever other action would go here} Else Perform script [sub-scripts, External "dbtest.fp5" {Open script}] {If this is an opener file} Close [] End If
Zeina Posted January 5, 2005 Author Posted January 5, 2005 Thanks this is awesome... next question from a filemaker 6 db can I call an external script residing in a filemaker 7 db? or vice versa? Z
rogermax Posted January 6, 2005 Posted January 6, 2005 Nope. At least not natively from either direction. Never tried doing it through some other application, if that is even possible.
Zeina Posted January 6, 2005 Author Posted January 6, 2005 Thanks Roger, I imagine it can be done via scripting...i'll be testing that today thanks Z
Recommended Posts
This topic is 7264 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now