window.isReadOnly

Syntax window.isReadOnly (adr)

Params adr is the address of a window whose read-only status you want to determine.

Action Determines the read-only status of a window.

Returns True if read-only; false otherwise.

Examples edit (@workspace.notepad);window.isReadOnly (@workspace.notepad) //opened normally

   » false

edit (@workspace.notepad, flReadOnly:true);window.isReadOnly (@workspace.notepad) //opened as read-only

   » true

Notes The read-only status of a window is set when calling edit or window.open. It's not a permanent attribute of an object, but an attribute of the window when it's open.

This verb is new in Frontier 7.

See Also edit

window.open

Discuss