Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Text /
Chapter 8 - Dictionary Manager / Dictionary Manager Reference
Routines / Modifying a Dictionary


DeleteRecordFromDictionary

The DeleteRecordFromDictionary function removes a record from the specified dictionary file.

FUNCTION DeleteRecordFromDictionary
                     (dictionaryReference: LongInt;
                        key: Str255): OSErr;
dictionaryReference
A number that specifies a particular open dictionary.
key
A Pascal string that denotes the key of the record to be deleted.
DESCRIPTION
If DeleteRecordFromDictionary returns any of the errors listed in "Result Codes," it did not remove any records from the specified dictionary.

SPECIAL CONSIDERATIONS
DeleteRecordFromDictionary may move memory; your application should not call this function at interrupt time.

RESULT CODES
In addition to the standard File Manager, Memory Manager, and Resource Manager errors, DeleteRecordFromDictionary may return any of the following result codes.
noErr0No error
notBTree-410File is not a dictionary
btRecNotFnd-415Record cannot be found
btKeyLenErr-416Key length too great or equal to zero

SEE ALSO
File Manager error codes are described in Inside Macintosh: Files. Memory Manager error codes are described in Inside Macintosh: Memory. Resource Manager error codes are described in Inside Macintosh: More Macintosh Toolbox.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996