fileMenu.new

Syntax fileMenu.new (type, hidden = false)

Params type is the type of object you wish to create, or a filespec

hidden is a boolean value indicating whether or not the window for the new object should be visible

Action If type is a Frontier data type, creates a new, untitled, file-based object of the specified type.

If type is a filespec, creates a new guest database at the location indicated by the path.

If hidden is true, the window for the new object will be opened invisibly.

Returns The address of the window containing the new object

Examples fileMenu.new (scriptType) // creates a new file-based script object

   » @Untitled

fileMenu.new (tableType, hidden: true) // creates a new file-based table object in a hidden window

   » @["Untitled-2"]

fileMenu.new ("System:Frontier:foo") // creates a new guest database file at the specified location

   » @["System:Frontier:foo"]

Notes Databases created with filemenu.new contain no system table, and are treated as guest databases of the current root file.

The optional "hidden" parameter was added in Frontier 5.1.5.

See Also fileMenu.open

fileMenu.close

Discuss