Get(LayoutViewState)

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

Категории