Important: The information in this document is obsolete and should not be used for new development.
UnloadScrap
You can use theUnloadScrap
function to write the scrap from memory to the scrap file.
FUNCTION UnloadScrap: LongInt;DESCRIPTION
TheUnloadScrap
function 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 thescrapName
field of the scrap information record (usually "Clipboard"). If the scrap is already on the disk, theUnloadScrap
function does nothing.
UnloadScrap
returns as its function result a long integer corresponding to a result code.SPECIAL CONSIDERATIONS
TheUnloadScrap
function 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