Hides or restores the components of the application shell: the Command window (and Navigator) and the MDI frame window. Returns a logical value corresponding to the previous SHELL( ) state.

Syntax

SHELL([<expL1>, [<expL2>]])

<expL1>

The value that determines whether to display the shell.

<expL2>

The value that determines whether to force the display of the MDI frame window. If <expL1> is true, the full shell is on and <expL2> is ignored. If <expL1> is false, <expL2> defaults to false.

Description

SHELL( ) controls the display of the components of the application shell:

The Command window

The Navigator

The MDI frame window, which contains the Command window, Navigator, and all MDI forms and their toolbars and menus. This window is represented by the _app.frameWin object.

In dBASE Plus, SHELL( ) defaults to true; all three components are displayed. In a compiled application, SHELL( ) defaults to false; none of the elements are displayed, unless either:

An MDI form is open, in which case the MDI frame window must be displayed to contain the MDI form(s), or

A menu has been assigned to _app.frameWin.

In either case, the MDI frame window stays visible regardless of the <expL2> value.