May 16, 200619 yr I created a script that executes when the file closes. It is assigned in the File Options menu item. These script steps cause the script itself to repeat (Close Window)..if it's the last window open (Exit Application) (Close File) However, if I try (Exit Script) or (Halt Script)the file won't close. QUESTION: What script steps can close the file without re-triggering the script that executes when the file is closing? I've attached the script that executes when the file is closing [color:green]g_LogOff and the script it calls, [color:orange]g_BackupCurrentFile.[/b] 1147816147-g_LogOff.txt 1147816157-g_BackupCurrentFile.txt
May 17, 200619 yr There is no need to trap whether the window is the last one open: the shutdown script only runs if it's the last window open (for that file).
May 17, 200619 yr Author I didn't try to trap the last window...i was just noting what will trigger the file closing script.
June 28, 200619 yr With the Close file script specified in the File options, I don't think there is a way to halt that once it is fired. You could try a quit button that runs that script instead of letting filemaker trigger it. I don't know if there is a way to keep a user from using the file menu to close the fiel though.
Create an account or sign in to comment