Important: The information in this document is obsolete and should not be used for new development.
UnloadScrap
You can use theUnloadScrapfunction to write the scrap from memory to the scrap file.
FUNCTION UnloadScrap: LongInt;DESCRIPTION
TheUnloadScrapfunction writes the scrap in memory to the scrap file and releases the memory occupied by the scrap in your application's heap. The scrap file is located in the System Folder of the startup volume and has the filename as indicated by thescrapNamefield of the scrap information record (usually "Clipboard"). If the scrap is already on the disk, theUnloadScrapfunction does nothing.
UnloadScrapreturns as its function result a long integer corresponding to a result code.SPECIAL CONSIDERATIONS
TheUnloadScrapfunction 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 dskFulErr -34 Disk full ioErr -36 I/O error