Over 46,000+ Business Solution Developers Find answers, ask questions, and connect with our community of business solutions developers, business owners and partners.
The Get(WindowMode) function will return a number based upon the current mode ( Browse – Find – Preview – Layout) of the FileMaker active window. Active can be the foreground window or a window in use by a running script.
Browse mode will return a 0
Find mode will return a 1
Preview mode will return a 2
Printing in progress will return a 3
A little odd but you can also return a 4 when in layout mode and a script is trying to do something with that window. You won’t be able to see the returned value of 4 in another other situation than a currently running script on that window. You would use this for error checking that you are not trying to execute script steps in a window in layout mode. I’d assume FileMaker Advanced users would be able to see this result in the Data Viewer but I haven’t experimented with that situation yet.
© 2010 – Dwayne Wright – dwaynewright.com
The material on this document is offered AS IS. FileMaker Pro is the registered trademark of FileMaker Inc.