Returns a number representing the mode the FileMaker product is in when the function is evaluated.
Get ( WindowMode )
None
number
FileMaker Pro 6.0 or earlier
Returns:
•0 for Browse mode
•1 for Find mode
•2 for Preview mode
•3 if printing is in progress
•4 if evaluating the function from the Data Viewer and the current window is in Layout mode
If a script using this function runs while the file is in Layout mode, FileMaker Pro Advanced switches to Browse mode and returns 0. If there are multiple windows open in the current database file, each window can have its own window mode value, but results are returned for only the foreground window.
Returns 2 if the file is in Preview mode when the function is evaluated.