The following errors, shown here with their names and descriptions, are the Word-API–specific errors defined in WDERROR.H, where error 0 (zero) is CAPINoError.
Error | Name | Description | |
---|---|---|---|
5001 | CAPIBadCommandId | Command ID is invalid | |
5002 | CAPIOddParamBlock | Parameter block has an odd number of bytes | |
5003 | CAPICmdNotAvailable | Command is not available | |
5004 | CAPIBadArgCount | Too many or too few arguments | |
5005 | CAPIInternalError | Internal data-handling error | |
5006 | CAPIByteCountMismatch | Parameter block doesn't have an acceptable number of bytes | |
5007 | CAPINotFunction | Non-function called as a function | |
5008 | CAPIBadType | Parameter type passed or expected is wrong |
Error | Name | Description | |
---|---|---|---|
5009 | CAPIStringTooLong | String is longer than 255 characters | |
5010 | CAPINullReturnBuffer | Pointer for output is nil | |
5011 | CAPICantLock | Can't lock global handle | |
5012 | CAPICantAllocate | Can't allocate global handle | |
5013 | CAPINoDialog | Commmand has no dialog box | |
5014 | CAPIOutOfMemory | Word API is out of memory | |
5015 | CAPIFieldIdOutOfRange | Too many parameters passed to function | |
5016 | CAPIBadFieldId | FieldID not in dialog box | |
5017 | CAPIBadHandle | Handle has not been allocated | |
5018 | CAPIArrayExpected | Parameter takes an array only | |
5019 | CAPITooManyDimensions | Too many dimensions for array | |
5020 | CAPIExpectedNumericType | Parameter passed was not a short, long, or numeric type | |
5021 | CAPIExpectedStringType | Parameter passed was not a string type | |
5022 | CAPIParameterOutOfRange | Parameter value was out of an acceptable range | |
5023 | CAPICantReturnString | String type requested for numeric-only field | |
5024 | CAPICantReturnNumeric | Numeric type requested for string-only field | |
5025 | CAPIReturnOverflow | Buffer for return string is too small | |
5026 | CAPIArrayOverflow | String array buffer is too small | |
5027 | CAPIDlgCommandOverflow | Dialog-box command string buffer is too small | |
5028 | CAPIOverflowNotHandled | BufferTooSmall bit set on input | |
5029 | CAPICantParse | String passed can't be parsed | |
5030 | CAPIBadMessage | Bad pointer in message | |
5031 | CAPICommandFailed | Word API command failed | |
5032 | CAPIBadDocRef | Document reference number (DocID) is invalid | |
5033 | CAPIInsufficientStack | Minimum stack not available | |
5034 | CAPIUninitializedString | 0 (zero) was passed as string pointer |