Category: Get
Syntax: Get ( LayoutViewState ) |
Parameters: None
Data type returned: Number
Description:
Returns a number that represents the view mode for the current layout in the active window.
Get (LayoutViewState) is useful in scripts to test the state of the current layout. Unless a layout has been restricted not to be viewable in another state, users can manually change the state of the current layout, provided they have access to menu commands. You can detect whether the layout is in the proper state, and if necessary, change it with the View As script step.
Examples:
Get (LayoutViewState) returns 0, 1, or 2, depending on the current layout's view state:
0 = View as Form
1 = View as List
2 = View as Table
: FileMaker Specifications
FileMaker 8 Product Line
Specifications and Storage Limits
Field Types and Import/Export Formats
: Calculation Functions
Working with Calculations Primer
Calculation Signatures
Calculation Functions
: Custom Functions
Custom Functions Primer
Useful Custom Functions
: Script Steps
Scripting Primer
Script Step Reference
: Quick Reference
FileMaker Error Codes
FileMaker Keyboard Shortcuts
FileMaker Network Ports
FileMaker Server Command Line Reference
FileMaker XML Reference
: Other Resources
Where to Go for More Information