Get(LayoutViewState)
 
Purpose 
Returns a number representing the currently active file view.
Format 
Get(LayoutViewState)
Parameters 
None
Data type returned 
number
Originated in 
FileMaker Pro 6.0 or earlier
Description 
Returns:
 •
0 (zero) if the database file is in Form View
 •
1 if the database file is in List View
 •
2 if the database file is in Table View
If there are multiple windows open in the current file, each window can have its own layout view state value, but results are returned for only the foreground window.
Note  For information on how functions evaluate differently on the host versus the client, search the FileMaker Knowledge Base available at http://help.filemaker.com.
Related topics 
Functions reference (category list)
Functions reference (alphabetical list)
About formulas
About functions
Defining calculation fields
Using operators in formulas