Important: The information in this document is obsolete and should not be used for new development.
PBDTRemoveComment
To remove a user comment from the desktop database, call thePBDTRemoveCommentfunction.
FUNCTION PBDTRemoveComment (paramBlock: DTPBPtr; async: Boolean): OSErr;
paramBlock- A pointer to a desktop parameter block.
async- A Boolean value that specifies asynchronous (
TRUE) or synchronous (FALSE) execution.
--> ioCompletion ProcPtr A pointer to a completion routine. \xAE ioResult OSErr The result code of the function. --> ioNamePtr StringPtr A pointer to the filename or directory name. --> ioDTRefNum Integer The desktop database reference number. --> ioDirID LongInt The parent directory of the file or directory. DESCRIPTION
ThePBDTRemoveCommentfunction removes the comment associated with a file or directory from the database specified inioDTRefNum. You specify the file or directory name throughioNamePtrand the parent directory ID inioDirID. You cannot remove a comment if the file or directory is not present on the volume. If no comment was stored for the file,PBDTRemoveCommentreturns an error.RESULT CODES