UserLand Software Home  |  Manila  |  Radio  |  Support  |  News

DocServer

Prev | Next | EditMenu Verbs > editMenu.copy

editMenu.copy

Syntax editMenu.copy ()

Params None required

Action Copies the target selection to the Clipboard.

Returns True if a selection existed and was copied, false if there was no selection or if the copy process failed.

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


   » true

Scroll to another place in the sample text window, click the insertion point there, and execute:
editMenu.paste ()


   » true

to confirm that the copy process worked as you expected.

Make sure you don't have anything selected in the frontmost editing window containing examples.docs.editText. Now type and execute:
editMenu.copy ()


   » false // Notice the return value is different from the first example, above.

Re-select the example text window. Execute:
editMenu.paste ()


   » true

Notice that the previous contents of the Clipboard are pasted into the document.

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

The action applies to the Frontier environment only.

See Also editMenu.cut

editMenu.clear

editMenu.paste

Prev | Next | EditMenu Verbs > editMenu.copy

Anonymization by Anonymouse.org ~ Adverts
Anonymouse better ad-free, faster and with encryption?
X