Close only window warning
Would like to have a dialog box come up when I'm attempting to close the last remaining open window, asking "Are you sure you want to exit the program?".
WindowNames is a design function that returns the name of all open, non-hidden windows in a return separated list.
valueCount ( WindowsNames ) = 1 will be true if this is the last window open in FileMaker.
You can also simply have a script that runs on File Close, which throws up the dialogue box you mention. If you have more than 1 window open it will let the user close windows 4, 3, and 2, but when they click to close the last window the 'On File Close' script will run.
Retrieving data ...