Get(LayoutNumber)

Category: Get

Syntax: Get ( LayoutNumber )

Parameters: None

Data type returned: Number

Description:

Returns the number of the layout currently displayed in the active window. The order of layouts can be set in Layout mode by going to the Layouts menu and selecting the Set Layout Order menu item.

Get (LayoutNumber) can be used to keep track of the last layout a user visited. The following script takes a user from one layout to another, allows the user to complete other tasks, and then returns the user to the original layout:

Set Field [temp; Get(LayoutNumber)] Go to Layout ["Other Layout"] [perform script, process, etc] Go to Layout [temp]

Because the layout you navigate to might be associated with a different table than the calling layout, the temp field used to store the layout number should be set to have global storage.

Examples:

Function

Results

Get (LayoutNumber)

Returns 6 when the sixth layout on the Set Layout Order list is active.

Категории