Jump to content

Close Database and go back to Main Switchboard

This topic is 6621 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I have a main switchboard which links 7 other databases via buttons and scripts. It works well to take me from main switchboard to individual database. In individual database I have another button that say exit, which is supposed to take me back to the switchboard (which it does) -- here's the problem. I tell the script to close the current database before it goes back to main switchboard, but it doesn't close the file - it does return to the main switchboard, but when you exit the switchboard the other database is still open and you must close this separately.

here is the script I have on the exit button:

close file [current file]

open file ["switchboard"]

What am I overlooking?

Thanks for your help.

Link to comment
Share on other sites


Welcome to the Forums.

You'd be better off doing it this way. Have a script in your switchboard which has the single step Refresh Window [bring to front], and all your other files, when they exit, should have a script which says:

Perform Script [your new script in the switchboard]

Close File [current file]

The thing that gets me is that your exit script really shouldn't work at all, because the Close File [] step (as I understand it) should kill the script as well as the file.


Link to comment
Share on other sites

I am really new to FM and to scripts. I am NOT a programmer. I don't even have documentation of any kind for the FM 7 Developer. It has been a process of using the help function to figure out how to set privileges and various validations of fields. I can't believe they don't have a copy of documentation anywhere here at work. How can you have a program without doc? Anyway,

Can you send me an example of a switchboard and script?



Link to comment
Share on other sites

The documentation is in the program: Help | FileMaker Developer Help.

Since you're not a programmer, you'd better get Stars' Learn FileMaker Pro 7 and work through the problems at the end of each chapter. As for the specific problem, in the script, change layouts first, then close the previous file.

Link to comment
Share on other sites

This topic is 6621 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.