Sorry - here is a synopsis:
Is there a way to get a count of the number of windows that a certain database has open at any time?
Long story short—my users keep on exiting the database by closing windows (using close buttons I've created) and need to log back in, which they get tired of quickly. I tried a script to let them know when they are about to exit the db, and not just a window, and set it to run when the db closes through file options. But when the cancel option is selected to stay in the db, it closes out anyway, I'm guessing because technically the file is closing and nothing can stop it.
I'd like to be able get an open window count and test that when they hit my close buttons, so if the window count is 1 when they close it gives them the option to cancel and stay in if they want. I haven't been able to find anything that will return this value in the lists of functions.
Thanks! — CK
Try:
ValueCount ( WindowNames ( Get (FileName) ) )
Is there a way to make this work in FMP 10 even if a user closes a window with the OS (not with a scripted button)?