/*------------------------------------------------------------
    WDERROR.H
    Word Errors

------------------------------------------------------------*/
#define errIllegalFunctionCall     5
#define errOverflow                6
#define errOutOfMemory             7
#define errSubscriptOutOfRange     9
#define errDivisionByZero         11
#define errOutOfStringSpace       14
#define errCaseElseExpected       39
#define errInternalError          51
#define errBadFileNameOrNumber    52
#define errFileNotFound           53
#define errBadFileMode            54
#define errFileAlreadyOpen        55
#define errDeviceIOError          57
#define errInputPastEndOfFile     62
#define errBadFileName            64
#define errTooManyFiles           67
#define errAdvFeatureUnavail      73
#define errRenameAcrossDisks      74
#define errPathFileAccessError    75
#define errPathNotFound           76
#define errBadArrayBound          22
#define errCannotWriteDisk        23
#define errBadParam               24
#define errOutOfStack             25
#define errUDlgNoButton           26
#define errNoResume               27
#define errDirExists              28

#define errSyntaxError           100
#define errCommaMissing          101
#define errCommandFailed         102
#define errDlgRecVarExpected     103
#define errElseWithoutIf         104
#define errEndIfWithoutIf        105
#define errInputMissing          109
#define errNoResumeNext          110
#define errExpressionTooComplex  111
#define errIdentifierExpected    112
#define errDuplicateLabel        113
#define errLabelNotFound         114
#define errMissingRightParen     115
#define errArgCountMismatch      116
#define errMissingNextOrWend     117
#define errNestedSubOrFunc       118
#define errNextWithoutFor        119
#define errArrayAlreadyDimed     120
#define errTypeMismatch          122
#define errUndefDlgRecField      123
#define errSubprogNotDefined     124
#define errUnexpectedEndOfMacro  125
#define errWendWithoutWhile      126
#define errWrongNumOfDimensions  127
#define errTooManyCtrlStructs    129
#define errMissingEndSelect      130
#define errIllegalRedim          131
#define errDllMadeStringTooLong  132
#define errBadDllCall            133
#define errBadDate               134
#define errNotOnThisPlatform     135
#define errCmdNotOnThisPlatform  136
#define errInvalidPathOpt        137
#define errCantChangeSel         138
#define errUserDlgUp             139
#define errInvalDlgControlId     140
#define errUnavailableOnCtl      141
#define errBadAppName            142
#define errInvalDlgHideDisable   143
#define errInvalDlgFocus         144
#define errInvalMergeField       145
#define errNoMergeField          146
#define errInternalStringError   147
#define errAppMaximized          148
#define errCommandNotFunction    149
#define errDuplDlgControlId      150
#define errDocMaximized          151
#define errNoDocOpen             152
#define errDocMinimized          153
#define errAppMinimized          154
#define errNotInField            155
#define errFieldHasNoData        156
#define errNotDataField          157
#define errParamTooLow           158
#define errParamTooHigh          159
#define errWrongNumOfParams      160
#define errCantCallDlg           161
#define errCommandOnlyFunction   162
#define errDlgActiveOnly         163
#define errArrayNotDimed         164

#define errCannotInitiate        500
#define errBogusDcl              501
#define errNoResponse            502
#define errAppNacked             503
#define errNoSuchWin             504
#define errCantActivate          505
#define errCannotSendKeys        506
#define errAppBusyed             508
#define errModeError             509
#define errNoMacro               511
#define errOutOfRange            512
#define errStringTooBig          513
#define errDocNotOpen            514
#define errUnableToLoadSpeller   528
#define errCannotOpenDictionary  529
#define errDlgBoxTooComplex      530
#define errUnknownLoc            532
#define errNoWordkey             534
#define errMacroAlreadyRunning   535
#define errBadMacroName          536
#define errCantRun               537
#define errCantEdit              538
#define errCantRename            539
#define errCantDelete            540
#define errCantSetDesc           541
#define errCantEditDesc          542
#define errCantFindLib           543
#define errNoScrollBar           544
#define errStatementDisabled     545
#define errFtnEdnNotContinuous   546
#define errNoNetPerm             547
#define errMenuDoesntExist       549
#define errCantRecord            550
#define errGlsyDocLocked         551
#define errNoTemplate            552
#define errCantCreate            553
#define errNoDrawingRangeSet     554
#define errInvalidDrawingRangeBookmark 555
#define errWrongDrawnObjectType  556
#define errCouldntInsertDO       557
#define errChapterLock           558
#define errBlockSel              559
#define errRevisionsHidden       560
#define errProtectedDoc          561
#define errGramStatsMultLang     562
#define errNotMaster             563
#define errGotoInvalid           564
#define errNotAnAddInFile        565
#define errFileInUse             566
#define errListMaxReached        567
#define errFontNotExist          568
#define errFindSearchType        569
#define errSortArrayDim          570
#define errTooManyAccelKey       571
#define errIllegalFirstAccel     572
#define errIllegalSecondAccel    573

#define errCAPINoError                 0       // No error
#define errCAPIBadCommandId            5001    // Command Id is invalid
#define errCAPIOddParamBlock           5002    // parameter block has odd number of bytes
#define errCAPICmdNotAvailable         5003    // command is not available
#define errCAPIBadArgCount             5004    // too many or too few arguments
#define errCAPIInternalError           5005    // error in our own data or handling
#define errCAPIByteCountMismatch       5006    // pb doesn't have acceptable # of bytes
#define errCAPINotFunction             5007    // non function called as function
#define errCAPIBadType                 5008    // parameter type passed or expected is wrong
#define errCAPIStringTooLong           5009    // string is longer than 255 characters
#define errCAPINullReturnBuffer        5010    // pointer for output is Nil
#define errCAPICantLock                5011    // can't lock global handle
#define errCAPICantAllocate            5012    // can't allocate global handle
#define errCAPINoDialog                5013    // commmand has no dialog
#define errCAPIOutOfMemory             5014    // CAPI is out of memory
#define errCAPIFieldIdOutOfRange       5015    // too many parameters passed to function
#define errCAPIBadFieldId              5016    // Field Id not in Dialog
#define errCAPIBadHandle               5017    // Handle has not been allocated
#define errCAPIArrayExpected           5018    // parameter takes an array only
#define errCAPITooManyDimensions       5019    // too many dimesions for array
#define errCAPIExpectedNumericType     5020    // parameter passed was not a short long or num
#define errCAPIExpectedStringType      5021    // parameter passed was not a string
#define errCAPIParameterOutOfRange     5022    // parameter value was out of acceptable range
#define errCAPICantReturnString        5023    // String Type requested for numeric only field
#define errCAPICantReturnNumeric       5024    // Numeric Type requested for string only field
#define errCAPIReturnOverflow          5025    // Buffer for return string is too small
#define errCAPIArrayOverflow           5026    // Array string buffer is too small
#define errCAPIDlgCommandOverflow      5027    // Dialog command string buffer too small
#define errCAPIOverflowNotHandled      5028    // BufferTooSmall bit set on input
#define errCAPICantParse               5029    // String Passed can't be parsed
#define errCAPIBadMessage              5030    // Bad pointer in message (CMI)
#define errCAPICommandFailed           5031    // CAPI command failed
#define errCAPIBadDocRef               5032    // Document Reference Number is Invalid
#define errCAPIInsufficientStack       5033    // Minimum Stack not available
#define errCAPIUninitializedString     5034    // 0 was passed as string pointer
