Exists
The Exists method 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
kODNULLID to use the draft and posCode parameters to identify the desired draft.
draft
- A reference to the draft object that is used with the
posCode parameter to identify the desired draft, or kODNULL to use the id parameter to identify the desired draft.
- posCode
- The position, relative to the
draft parameter, of the desired draft in this document's draft history, or kODPosUndefined to use the id parameter to identify the desired draft.
- return value
-
kODTrue if the desired draft exists, otherwise kODFalse.
DISCUSSION
If the id parameter is not null, this method uses that parameter to identify the desired draft and ignores the draft and posCode parameters. If the id parameter is kODNULLID, this method uses the draft and posCode parameters to identify the desired draft.
EXCEPTIONS
kODErrInsufficientInfoInParams
- No draft was specified; the
id parameter is kODNULLID and the draft parameter is kODNULL.
kODErrUnsupportedPosCode
- The specified position code is not supported.
SEE ALSO
The ODDraftID type (page 902).
The ODPositionCode type (page 915).