Important: The information in this document is obsolete and should not be used for new development.
LoadScrap
You can use theLoadScrap
function to read the scrap from the scrap file into memory.
FUNCTION LoadScrap: LongInt;DESCRIPTION
TheLoadScrap
function 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 thescrapName
field of the scrap information record. If the scrap is already in memory,LoadScrap
does nothing.
LoadScrap
returns as its function result a long integer corresponding to a result code.SPECIAL CONSIDERATIONS
TheLoadScrap
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 ioErr -36 I/O error memFullErr -108 Not enough memory in heap zone