| Prev | Next | Window Verbs > window.setModified |
window.setModified
| Syntax |
window.setModified (title, setting)
|
| Params |
title is the name of the window whose modified status you want to set. setting is a boolean value indicating whether the window should be considered modified or not.
|
| Action |
Sets the modified status of the window named title and the object it contains.
|
| Returns |
True
|
| Examples |
window.setModified (@root, true) // ensure that the user will be prompted to save changes true
window.setModified ("notepad", false); window.close ("notepad")
The notepad outline's changes will be discarded as it is closed. |
| Notes |
If title is a valid database address of an object that isn't currently displayed in a window, this verb will set the status of the object. Setting a table or menubar object to be unmodified does not change the status of its subordinate material. Such objects will still be considered to be modified if any subordinate material has been changed. An object that has never been saved -- one that was just created or imported -- cannot be set as unmodified. When applied to such an object, file.setModified will return false.
|
| See Also |
window.isModified
|
| Prev | Next | Window Verbs > window.setModified |