Xbase Class Library  2.0.0
retcodes.h
Go to the documentation of this file.
1 /* $Id: retcodes.h,v 1.4 2000/10/31 00:59:48 dbryson Exp $
2 
3  Xbase project source code
4 
5  This file contains a listing of all the Xbase return codes.
6 
7  Copyright (C) 1997 StarTech, Gary A. Kunkel
8 
9  This library is free software; you can redistribute it and/or
10  modify it under the terms of the GNU Lesser General Public
11  License as published by the Free Software Foundation; either
12  version 2.1 of the License, or (at your option) any later version.
13 
14  This library is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  Lesser General Public License for more details.
18 
19  You should have received a copy of the GNU Lesser General Public
20  License along with this library; if not, write to the Free Software
21  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 
23  Contact:
24 
25  Mail:
26 
27  Technology Associates, Inc.
28  XBase Project
29  1455 Deming Way #11
30  Sparks, NV 89434
31  USA
32 
33  Email:
34 
35  xbase@techass.com
36 
37  See our website at:
38 
39  xdb.sourceforge.net
40 
41 
42  V 1.0 10/10/97 - Initial release of software
43  V 1.5 1/2/98 - Added memo field support
44  V 1.6a 4/1/98 - Added expression support
45  V 1.6b 4/8/98 - Numeric index keys
46  V 1.8.0a 1/27/99 - Changed return codes to negative values
47 */
48 
52 #ifndef __XB_RETCODES_H__
53 #define __XB_RETCODES_H__
54 
55 /***********************************************/
56 /* Return Codes and Error Messages */
57 
58 #define XB_NO_ERROR 0
59 #define XB_EOF -100
60 #define XB_BOF -101
61 #define XB_NO_MEMORY -102
62 #define XB_FILE_EXISTS -103
63 #define XB_OPEN_ERROR -104
64 #define XB_WRITE_ERROR -105
65 #define XB_UNKNOWN_FIELD_TYPE -106
66 #define XB_ALREADY_OPEN -107
67 #define XB_NOT_XBASE -108
68 #define XB_INVALID_RECORD -109
69 #define XB_INVALID_OPTION -110
70 #define XB_NOT_OPEN -111
71 #define XB_SEEK_ERROR -112
72 #define XB_READ_ERROR -113
73 #define XB_NOT_FOUND -114
74 #define XB_FOUND -115
75 #define XB_INVALID_KEY -116
76 #define XB_INVALID_NODELINK -117
77 #define XB_KEY_NOT_UNIQUE -118
78 #define XB_INVALID_KEY_EXPRESSION -119
79 #define XB_DBF_FILE_NOT_OPEN -120
80 #define XB_INVALID_KEY_TYPE -121
81 #define XB_INVALID_NODE_NO -122
82 #define XB_NODE_FULL -123
83 #define XB_INVALID_FIELDNO -124
84 #define XB_INVALID_DATA -125
85 #define XB_NOT_LEAFNODE -126
86 #define XB_LOCK_FAILED -127
87 #define XB_CLOSE_ERROR -128
88 #define XB_INVALID_SCHEMA -129
89 #define XB_INVALID_NAME -130
90 #define XB_INVALID_BLOCK_SIZE -131
91 #define XB_INVALID_BLOCK_NO -132
92 #define XB_NOT_MEMO_FIELD -133
93 #define XB_NO_MEMO_DATA -134
94 #define XB_EXP_SYNTAX_ERROR -135
95 #define XB_PARSE_ERROR -136
96 #define XB_NO_DATA -137
97 #define XB_UNKNOWN_TOKEN_TYPE -138
98 #define XB_INVALID_FIELD -140
99 #define XB_INSUFFICIENT_PARMS -141
100 #define XB_INVALID_FUNCTION -142
101 #define XB_INVALID_FIELD_LEN -143
102 #define XB_HARVEST_NODE -144
103 #define XB_INVALID_DATE -145
104 #endif /* __XB_RETCODES_H__ */