Skip to main content

PutScrapText

PutScrapText textStr

The PutScrapText operation places textStr on the Clipboard (aka "scrap"). This text will be used when the user subsequently selects Paste from the Edit menu.

Details

All contents of the Clipboard (including pictures) are cleared before the text is placed there.

Examples

// Put two lines of text into the Clipboard
String text = "This is the first line.\rAnd this is the second."
PutScrapText text

// Empty the Clipboard
PutScrapText ""

See Also

GetScrapText, SavePICT