December 8, 200223 yr Newbies Does anyone know how I can get a db to close another db when it closes. I have tried putting in a script that runs on exit, with a close step but it is still leacing the child file minimised at the bottom of the application window even when the main file is completely closed. I can't see why my close step isn't working. Any help on this would be greatly appreciated. KT
December 8, 200223 yr Hi KT, There are several things that can cause the problem you are experiencing, but the most likely explanation is that your main file requires data from the related file (eg in order to maintain related data displaying on its current layout) at the time when your script runs. Thus as soon as the file has been closed, the main file opens it again (but opens it minimized) so that it can continue to display related data on its layout. A solution is to include a Go to Layout [ ] or Toggle Window [Hide] command immediately preceding the Close [RelatedFile.fp5] step. If you use Go To Layout [ ], you will need to select a layout that does not have any related fields or other fields (eg unstored calcs) that are dependent on related data. For this you might even consider creating a special blank 'close' layout - perhaps even a 'closing splash' layout.
December 8, 200223 yr Author Newbies Hey that's fantastic!! You nailed it in one!!! You've no idea how much time I have spent fretting over this and you've just **saved** me! I really liked your suggestion of a closing splash screen too, that was great and I've tried it an it works, and now I'm organising some graphics for it. This is really cool! Heartfelt thanks, CobaltSky
Create an account or sign in to comment