fileMenu.close

Syntax fileMenu.close (adrWindow)

Params adrWindow is the is the optional address of the window to close

Action Closes the specified window.

Returns True if the window is found and closed, false otherwise.

Examples adr = @scratchpad; edit (adr); fileMenu.close (adr)

   » true

Notes If the window address parameter is omitted, the target window will be closed.

If you continue to use fileMenu.close (), eventually you'll close all of the windows, including the Frontier.root window. You will then have to use Open from the File menu to re-open Frontier.root before resuming.

Unlike Close from the File menu, closing the Frontier.root window with this verb will not automatically prompt the user to save changes - unsaved changes will be discarded. You can, of course, prompt the user from within your script before doing so with fileMenu.save.

See Also fileMenu.closeAll

fileMenu.open

fileMenu.save

window.close

Discuss