editMenu.clear

Syntax editMenu.clear ()

Params None required

Action Delete the selected item, with no effect on the Clipboard.

Returns True

Examples Open examples.docs.editText in the Object Database. Select any line of text in the window and then type and execute:
editMenu.clear ()


   » true

Before you leave the example, be sure to type and execute:
editMenu.undo ()


   » true

to leave the sample in its original condition.

Notes Performs the same action as selecting the Clear command from the Edit menu in Frontier.

Since this verb places nothing on the Clipboard, it is faster and uses less memory than editMenu.cut. You should use this verb unless you plan to paste the information being removed from the document.

The action applies to the Frontier environment only.

See Also editMenu.cut

Discuss