TEToScrap
The TEToScrap function copies the contents of the TextEdit private scrap to the desk scrap.
FUNCTION TEToScrap: OSErr;
DESCRIPTION
You use the TEToScrap function to move monostyled text across applications or between an application and a desk accessory. Call the Scrap Manager function ZeroScrap to initialize the desk scrap or clear its contents before calling TEToScrap.
ASSEMBLY-LANGUAGE INFORMATION
Copy the contents of the private scrap to the desk scrap by calling the Scrap Manager function PutScrap; you can get the values you need from the global variables TEScrpHandle and TEScrpLength.
RESULT CODES
| noErr | 0 | No error |
noScrapErr | -100 | Desk scrap isn't initialized |
SEE ALSO
For more information about the PutScrap function, the ZeroScrap function, and the desk scrap, see the chapter "Scrap Manager" in Inside Macintosh: More Macintosh Toolbox.