Important: The information in this document is obsolete and should not be used for new development.
LoadScrap
You can use theLoadScrapfunction to read the scrap from the scrap file into memory.
FUNCTION LoadScrap: LongInt;DESCRIPTION
TheLoadScrapfunction allocates memory in your application's heap to hold the scrap and then reads the scrap from the scrap file into memory. The scrap file is located in the System Folder of the startup volume and has the filename (usually "Clipboard") as indicated by thescrapNamefield of the scrap information record. If the scrap is already in memory,LoadScrapdoes nothing.
LoadScrapreturns as its function result a long integer corresponding to a result code.SPECIAL CONSIDERATIONS
TheLoadScrapfunction may move or purge memory blocks in the application heap. Your application should not call this function at interrupt time.RESULT CODES
noErr 0 No error ioErr -36 I/O error memFullErr -108 Not enough memory in heap zone