Exists
TheExistsmethod returns a Boolean value that indicates whether the specified draft exists in this document.
ODBoolean Exists (in ODDraftID id, in ODDraft draft, in ODPositionCode posCode);
id- The draft ID, or
kODNULLIDto use thedraftandposCodeparameters to identify the desired draft.draft- A reference to the draft object that is used with the
posCodeparameter to identify the desired draft, orkODNULLto use theidparameter to identify the desired draft.- posCode
- The position, relative to the
draftparameter, of the desired draft in this document's draft history, orkODPosUndefinedto use theidparameter to identify the desired draft.- return value
kODTrueif the desired draft exists, otherwisekODFalse.DISCUSSION
If theidparameter is not null, this method uses that parameter to identify the desired draft and ignores thedraftandposCodeparameters. If theidparameter iskODNULLID, this method uses thedraftandposCodeparameters to identify the desired draft.EXCEPTIONS
kODErrInsufficientInfoInParams- No draft was specified; the
idparameter iskODNULLIDand thedraftparameter iskODNULL.kODErrUnsupportedPosCode- The specified position code is not supported.
SEE ALSO
TheODDraftIDtype (page 902).
TheODPositionCodetype (page 915).
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help