The user marks two words (a name) with mousecursor in the ‘source’ field. My intention is, to transfer this marked text to another field ‘target’. All Fields are plain text.
Notes documentation says that uidoc.copy takes text that is marked in edit mode. Here an extract of original documentation:
Copies the current selection in a document to the Clipboard. The current selection can be anything on the document, such as text or graphics.
I’ve put this script under a botton:
… Call uidoc.Copy Call uidoc.GotoField(“target”) Call uidoc.Paste
This does not work, an error occurs. Error message: Only text can be pasted into this type of field.
Does anyone have another idea to solve this issue ?
Hint: The following works. After that, target has the content of source:
Call uidoc.GotoField(“source”) Call uidoc.SelectAll Call uidoc.Copy Call uidoc.GotoField(“target”) Call uidoc.Paste