window.open

Syntax window.open (adr, flReadOnly = false)

Params adr is the Object Database address of the object whose display window you wish to open.

flReadOnly is an optional parameter, a boolean.

Action Opens the window associated with displaying the object at adr.

Returns True.

Examples With the examples window closed, type and execute:

window.open (@examples)

   » true

window.open (@workspace.notepad, true) //open the Notepad as read-only

   » true

Notes Opening an open window has no effect and returns true.

This is one of the few window verbs that requires the address of an object rather than a title. That's because there is by definition no window open with a title when this verb is needed.

The difference between window.open and edit is that this verb does not explicitly establish addr as the target for subsequent content-editing verbs. We recommend you use edit to open a window for editing and window.open to open a window when other verbs that are not content-changing are to be used on it.

The flReadOnly parameter was added in Frontier 7.

See Also window.close

edit

Discuss