editMenu.undo
| Syntax |
editMenu.undo ()
|
| Params |
None required
|
| Action |
Undoes the last operation on the target window.
|
| Returns |
True if the previous operation in the target window could be undone and was, false if Undo is disabled and therefore could not be performed.
|
| Examples |
Open examples.docs.editText in the Object Database. Select any line of text in the window and then type and execute: editMenu.cut ()
Note that the selected text has been removed. Now type and execute:
Note that the cut is undone and the text is restored. Try it again:
Now the text is cut again. Many of the content-editing commands place the undo feature of Frontier into a toggle mode where each execution of editMenu.undo returns the document to its previous state. |
| Notes |
Performs the same action as selecting the Undo or the corresponding Redo command in the Frontier Edit menu. This verb, like its menu equivalent, often acts as a toggle, undoing and re-doing a specific change. Frontier keeps separate track of the last change made in each window during a Frontier session. This permits you to undo the last sequence of actions if they are performed on different objects.
|