xref: /aoo41x/main/basic/inc/basic/sberrors.hxx (revision 234bd5c5)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _SB_SBERRORS_HXX
25 #define _SB_SBERRORS_HXX
26 
27 #include <basic/sbxdef.hxx>
28 
29 #ifndef __RSC
30 typedef sal_uIntPtr SbError;
31 #endif
32 
33 // Mapping to SbxError
34 #define	ERRCODE_BASIC_SYNTAX				ERRCODE_SBX_SYNTAX       			// unspecified syntax error
35 #define	ERRCODE_BASIC_BAD_ARGUMENT			ERRCODE_SBX_NOTIMP   				// Invalid procedure call
36 #define ERRCODE_BASIC_MATH_OVERFLOW			ERRCODE_SBX_OVERFLOW   				// Overflow
37 #define	ERRCODE_BASIC_OUT_OF_RANGE			ERRCODE_SBX_BOUNDS     				// Subscript out of range
38 #define	ERRCODE_BASIC_ZERODIV				ERRCODE_SBX_ZERODIV    				// Division by zero
39 #define	ERRCODE_BASIC_CONVERSION			ERRCODE_SBX_CONVERSION    			// Type mismatch
40 #define	ERRCODE_BASIC_BAD_PARAMETER			ERRCODE_SBX_BAD_PARAMETER			// Invalid Parameter
41 #define	ERRCODE_BASIC_PROC_UNDEFINED		ERRCODE_SBX_PROC_UNDEFINED			// Sub or Function not defined
42 #define ERRCODE_BASIC_INTERNAL_ERROR		ERRCODE_SBX_ERROR					// internal error
43 #define	ERRCODE_BASIC_NO_OBJECT				ERRCODE_SBX_NO_OBJECT				// Object variable not set
44 #define	ERRCODE_BASIC_CANNOT_LOAD			ERRCODE_SBX_CANNOT_LOAD				// Can't load module
45 #define	ERRCODE_BASIC_BAD_INDEX				ERRCODE_SBX_BAD_INDEX				// Invalid object index
46 #define ERRCODE_BASIC_NO_ACTIVE_OBJECT		ERRCODE_SBX_NO_ACTIVE_OBJECT		// No active view or document
47 #define	ERRCODE_BASIC_BAD_PROP_VALUE		ERRCODE_SBX_BAD_PROP_VALUE			// Bad property value
48 #define	ERRCODE_BASIC_PROP_READONLY			ERRCODE_SBX_PROP_READONLY			// Property is read only
49 #define	ERRCODE_BASIC_PROP_WRITEONLY		ERRCODE_SBX_PROP_WRITEONLY			// Property is write only
50 #define	ERRCODE_BASIC_INVALID_OBJECT		ERRCODE_SBX_INVALID_OBJECT			// Invalid object reference
51 #define	ERRCODE_BASIC_NO_METHOD				ERRCODE_SBX_NO_METHOD				// Property or method not found
52 #define	ERRCODE_BASIC_INVALID_USAGE_OBJECT	ERRCODE_SBX_INVALID_USAGE_OBJECT	// Invalid usee of object
53 #define	ERRCODE_BASIC_NO_OLE				ERRCODE_SBX_NO_OLE					// Class does not support OLE
54 #define	ERRCODE_BASIC_BAD_METHOD			ERRCODE_SBX_BAD_METHOD				// Object doesn't support method
55 #define	ERRCODE_BASIC_OLE_ERROR				ERRCODE_SBX_OLE_ERROR				// OLE Automation error
56 #define	ERRCODE_BASIC_BAD_ACTION			ERRCODE_SBX_BAD_ACTION				// Object doesn't support this action
57 #define	ERRCODE_BASIC_NO_NAMED_ARGS			ERRCODE_SBX_NO_NAMED_ARGS			// Object doesn't support named args
58 #define	ERRCODE_BASIC_BAD_LOCALE			ERRCODE_SBX_BAD_LOCALE				// Object doesn't support current locale setting
59 #define	ERRCODE_BASIC_NAMED_NOT_FOUND		ERRCODE_SBX_NAMED_NOT_FOUND			// Named argument not found
60 #define	ERRCODE_BASIC_NOT_OPTIONAL			ERRCODE_SBX_NOT_OPTIONAL			// Argument not optional
61 #define	ERRCODE_BASIC_WRONG_ARGS			ERRCODE_SBX_WRONG_ARGS				// Wrong number of arguments
62 #define	ERRCODE_BASIC_NOT_A_COLL			ERRCODE_SBX_NOT_A_COLL				// Object not a collection
63 
64 // Append Basic specific error messages to ERRCODE_AREA_SBX
65 #define	ERRCODE_BASIC_NO_GOSUB				((LAST_SBX_ERROR_ID+1UL) | ERRCODE_AREA_SBX | \
66 											ERRCODE_CLASS_RUNTIME)				// Return without Gosub
67 #define	ERRCODE_BASIC_REDO_FROM_START		((LAST_SBX_ERROR_ID+2UL) | ERRCODE_AREA_SBX | \
68 											ERRCODE_CLASS_RUNTIME)				// Redo form start (SB internal)
69 #define	ERRCODE_BASIC_NO_MEMORY				((LAST_SBX_ERROR_ID+3UL) | ERRCODE_AREA_SBX | \
70 											ERRCODE_CLASS_RUNTIME)   			// Out of memory
71 #define	ERRCODE_BASIC_ALREADY_DIM			((LAST_SBX_ERROR_ID+4UL) | ERRCODE_AREA_SBX | \
72 											ERRCODE_CLASS_RUNTIME)    			// Array already dimensioned
73 #define	ERRCODE_BASIC_DUPLICATE_DEF			((LAST_SBX_ERROR_ID+5UL) | ERRCODE_AREA_SBX | \
74 											ERRCODE_CLASS_RUNTIME)    			// Duplicate definition
75 #define	ERRCODE_BASIC_VAR_UNDEFINED			((LAST_SBX_ERROR_ID+6UL) | ERRCODE_AREA_SBX | \
76 											ERRCODE_CLASS_RUNTIME)     		// Variable undefined (SB)
77 #define	ERRCODE_BASIC_USER_ABORT			((LAST_SBX_ERROR_ID+7UL) | ERRCODE_AREA_SBX | \
78 											ERRCODE_CLASS_RUNTIME)    			// User interrupt occurred
79 #define	ERRCODE_BASIC_BAD_RESUME			((LAST_SBX_ERROR_ID+8UL) | ERRCODE_AREA_SBX | \
80 											ERRCODE_CLASS_RUNTIME)				// Resume without error
81 #define	ERRCODE_BASIC_STACK_OVERFLOW		((LAST_SBX_ERROR_ID+9UL) | ERRCODE_AREA_SBX | \
82 											ERRCODE_CLASS_RUNTIME)  			// Out of stack space
83 #define ERRCODE_BASIC_BAD_DLL_LOAD			((LAST_SBX_ERROR_ID+10UL) | ERRCODE_AREA_SBX | \
84 											ERRCODE_CLASS_RUNTIME)				// Error in loading DLL
85 #define	ERRCODE_BASIC_BAD_DLL_CALL			((LAST_SBX_ERROR_ID+11UL) | ERRCODE_AREA_SBX | \
86 											ERRCODE_CLASS_RUNTIME)				// Bad DLL calling convention
87 #define ERRCODE_BASIC_BAD_CHANNEL			((LAST_SBX_ERROR_ID+12UL) | ERRCODE_AREA_SBX | \
88 											ERRCODE_CLASS_RUNTIME)  			// Bad file name or number
89 #define	ERRCODE_BASIC_FILE_NOT_FOUND		((LAST_SBX_ERROR_ID+13UL) | ERRCODE_AREA_SBX | \
90 											ERRCODE_CLASS_RUNTIME)				// File not found
91 #define	ERRCODE_BASIC_BAD_FILE_MODE			((LAST_SBX_ERROR_ID+14UL) | ERRCODE_AREA_SBX | \
92 											ERRCODE_CLASS_RUNTIME)				// Bad file mode
93 #define	ERRCODE_BASIC_FILE_ALREADY_OPEN		((LAST_SBX_ERROR_ID+15UL) | ERRCODE_AREA_SBX | \
94 											ERRCODE_CLASS_RUNTIME)				// File already open
95 #define	ERRCODE_BASIC_IO_ERROR				((LAST_SBX_ERROR_ID+16UL) | ERRCODE_AREA_SBX | \
96 											ERRCODE_CLASS_RUNTIME)     		// Device I/O error
97 #define	ERRCODE_BASIC_FILE_EXISTS			((LAST_SBX_ERROR_ID+17UL) | ERRCODE_AREA_SBX | \
98 											ERRCODE_CLASS_RUNTIME)				// File already exists
99 #define ERRCODE_BASIC_BAD_RECORD_LENGTH		((LAST_SBX_ERROR_ID+18UL) | ERRCODE_AREA_SBX | \
100 											ERRCODE_CLASS_RUNTIME)				// bad record length
101 #define	ERRCODE_BASIC_DISK_FULL				((LAST_SBX_ERROR_ID+19UL) | ERRCODE_AREA_SBX | \
102 											ERRCODE_CLASS_RUNTIME)				// disk full
103 #define	ERRCODE_BASIC_READ_PAST_EOF			((LAST_SBX_ERROR_ID+20UL) | ERRCODE_AREA_SBX | \
104 											ERRCODE_CLASS_RUNTIME)				// Input past end of file
105 #define ERRCODE_BASIC_BAD_RECORD_NUMBER		((LAST_SBX_ERROR_ID+21UL) | ERRCODE_AREA_SBX | \
106 											ERRCODE_CLASS_RUNTIME)				// Bad record number
107 #define	ERRCODE_BASIC_TOO_MANY_FILES		((LAST_SBX_ERROR_ID+22UL) | ERRCODE_AREA_SBX | \
108 											ERRCODE_CLASS_RUNTIME) 			// Too many files
109 #define ERRCODE_BASIC_NO_DEVICE				((LAST_SBX_ERROR_ID+23UL) | ERRCODE_AREA_SBX | \
110 											ERRCODE_CLASS_RUNTIME)				// Device not available
111 #define	ERRCODE_BASIC_ACCESS_DENIED			((LAST_SBX_ERROR_ID+24UL) | ERRCODE_AREA_SBX | \
112 											ERRCODE_CLASS_RUNTIME)				// Permission denied
113 #define	ERRCODE_BASIC_NOT_READY				((LAST_SBX_ERROR_ID+25UL) | ERRCODE_AREA_SBX | \
114 											ERRCODE_CLASS_RUNTIME)				// Disk not ready
115 #define ERRCODE_BASIC_NOT_IMPLEMENTED		((LAST_SBX_ERROR_ID+26UL) | ERRCODE_AREA_SBX | \
116 											ERRCODE_CLASS_RUNTIME)				// Feature not implemented
117 #define	ERRCODE_BASIC_DIFFERENT_DRIVE		((LAST_SBX_ERROR_ID+27UL) | ERRCODE_AREA_SBX | \
118 											ERRCODE_CLASS_RUNTIME)				// No rename with different drive
119 #define	ERRCODE_BASIC_ACCESS_ERROR			((LAST_SBX_ERROR_ID+28UL) | ERRCODE_AREA_SBX | \
120 											ERRCODE_CLASS_RUNTIME)				// Path/File access error
121 #define	ERRCODE_BASIC_PATH_NOT_FOUND		((LAST_SBX_ERROR_ID+29UL) | ERRCODE_AREA_SBX | \
122 											ERRCODE_CLASS_RUNTIME)				// Path not found
123 #define ERRCODE_BASIC_BAD_PATTERN			((LAST_SBX_ERROR_ID+30UL) | ERRCODE_AREA_SBX | \
124 											ERRCODE_CLASS_RUNTIME)				// Invalid pattern string
125 #define	ERRCODE_BASIC_IS_NULL				((LAST_SBX_ERROR_ID+31UL) | ERRCODE_AREA_SBX | \
126 											ERRCODE_CLASS_RUNTIME)				// Invalid use of Null
127 
128 // DDE messages from 250-299
129 #define ERRCODE_BASIC_DDE_ERROR				((LAST_SBX_ERROR_ID+32UL) | ERRCODE_AREA_SBX | \
130 											ERRCODE_CLASS_RUNTIME)
131 #define ERRCODE_BASIC_DDE_WAITINGACK		((LAST_SBX_ERROR_ID+33UL) | ERRCODE_AREA_SBX | \
132 											ERRCODE_CLASS_RUNTIME)
133 #define ERRCODE_BASIC_DDE_OUTOFCHANNELS		((LAST_SBX_ERROR_ID+34UL) | ERRCODE_AREA_SBX | \
134 											ERRCODE_CLASS_RUNTIME)
135 #define ERRCODE_BASIC_DDE_NO_RESPONSE		((LAST_SBX_ERROR_ID+35UL) | ERRCODE_AREA_SBX | \
136 											ERRCODE_CLASS_RUNTIME)
137 #define ERRCODE_BASIC_DDE_MULT_RESPONSES	((LAST_SBX_ERROR_ID+36UL) | ERRCODE_AREA_SBX | \
138 											ERRCODE_CLASS_RUNTIME)
139 #define ERRCODE_BASIC_DDE_CHANNEL_LOCKED	((LAST_SBX_ERROR_ID+37UL) | ERRCODE_AREA_SBX | \
140 											ERRCODE_CLASS_RUNTIME)
141 #define ERRCODE_BASIC_DDE_NOTPROCESSED		((LAST_SBX_ERROR_ID+38UL) | ERRCODE_AREA_SBX | \
142 											ERRCODE_CLASS_RUNTIME)
143 #define ERRCODE_BASIC_DDE_TIMEOUT			((LAST_SBX_ERROR_ID+39UL) | ERRCODE_AREA_SBX | \
144 											ERRCODE_CLASS_RUNTIME)
145 #define ERRCODE_BASIC_DDE_USER_INTERRUPT	((LAST_SBX_ERROR_ID+40UL) | ERRCODE_AREA_SBX | \
146 											ERRCODE_CLASS_RUNTIME)
147 #define ERRCODE_BASIC_DDE_BUSY				((LAST_SBX_ERROR_ID+41UL) | ERRCODE_AREA_SBX | \
148 											ERRCODE_CLASS_RUNTIME)
149 #define ERRCODE_BASIC_DDE_NO_DATA			((LAST_SBX_ERROR_ID+42UL) | ERRCODE_AREA_SBX | \
150 											ERRCODE_CLASS_RUNTIME)
151 #define ERRCODE_BASIC_DDE_WRONG_DATA_FORMAT	((LAST_SBX_ERROR_ID+43UL) | ERRCODE_AREA_SBX | \
152 											ERRCODE_CLASS_RUNTIME)
153 #define ERRCODE_BASIC_DDE_PARTNER_QUIT		((LAST_SBX_ERROR_ID+44UL) | ERRCODE_AREA_SBX | \
154 											ERRCODE_CLASS_RUNTIME)
155 #define ERRCODE_BASIC_DDE_CONV_CLOSED		((LAST_SBX_ERROR_ID+45UL) | ERRCODE_AREA_SBX | \
156 											ERRCODE_CLASS_RUNTIME)
157 #define ERRCODE_BASIC_DDE_NO_CHANNEL		((LAST_SBX_ERROR_ID+46UL) | ERRCODE_AREA_SBX | \
158 											ERRCODE_CLASS_RUNTIME)
159 #define ERRCODE_BASIC_DDE_INVALID_LINK		((LAST_SBX_ERROR_ID+47UL) | ERRCODE_AREA_SBX | \
160 											ERRCODE_CLASS_RUNTIME)
161 #define ERRCODE_BASIC_DDE_QUEUE_OVERFLOW	((LAST_SBX_ERROR_ID+48UL) | ERRCODE_AREA_SBX | \
162 											ERRCODE_CLASS_RUNTIME)
163 #define ERRCODE_BASIC_DDE_LINK_ALREADY_EST	((LAST_SBX_ERROR_ID+49UL) | ERRCODE_AREA_SBX | \
164 											ERRCODE_CLASS_RUNTIME)
165 #define ERRCODE_BASIC_DDE_LINK_INV_TOPIC	((LAST_SBX_ERROR_ID+50UL) | ERRCODE_AREA_SBX | \
166 											ERRCODE_CLASS_RUNTIME)
167 #define ERRCODE_BASIC_DDE_DLL_NOT_FOUND		((LAST_SBX_ERROR_ID+51UL) | ERRCODE_AREA_SBX | \
168 											ERRCODE_CLASS_RUNTIME)
169 
170 #define	ERRCODE_BASIC_NEEDS_OBJECT			((LAST_SBX_ERROR_ID+52UL) | ERRCODE_AREA_SBX | \
171 											ERRCODE_CLASS_RUNTIME)				// Object required
172 #define	ERRCODE_BASIC_BAD_ORDINAL			((LAST_SBX_ERROR_ID+53UL) | ERRCODE_AREA_SBX | \
173 											ERRCODE_CLASS_RUNTIME)				// Invalid ordinal
174 #define	ERRCODE_BASIC_DLLPROC_NOT_FOUND		((LAST_SBX_ERROR_ID+54UL) | ERRCODE_AREA_SBX | \
175 											ERRCODE_CLASS_RUNTIME)				// Specified DLL function not found
176 #define ERRCODE_BASIC_BAD_CLIPBD_FORMAT		((LAST_SBX_ERROR_ID+55UL) | ERRCODE_AREA_SBX | \
177 											ERRCODE_CLASS_RUNTIME)				// Invalid clipboard format
178 
179 // Debugger messages from 700-799
180 
181 #define	ERRCODE_BASIC_PROPERTY_NOT_FOUND	((LAST_SBX_ERROR_ID+56UL) | ERRCODE_AREA_SBX | \
182 											ERRCODE_CLASS_RUNTIME)				// Class not have property
183 #define	ERRCODE_BASIC_METHOD_NOT_FOUND		((LAST_SBX_ERROR_ID+57UL) | ERRCODE_AREA_SBX | \
184 											ERRCODE_CLASS_RUNTIME)				// Class does not have method
185 #define	ERRCODE_BASIC_ARG_MISSING			((LAST_SBX_ERROR_ID+58UL) | ERRCODE_AREA_SBX | \
186 											ERRCODE_CLASS_RUNTIME)				// Missing required argument
187 #define	ERRCODE_BASIC_BAD_NUMBER_OF_ARGS	((LAST_SBX_ERROR_ID+59UL) | ERRCODE_AREA_SBX | \
188 											ERRCODE_CLASS_RUNTIME)				// Bad number of arguments
189 #define	ERRCODE_BASIC_METHOD_FAILED			((LAST_SBX_ERROR_ID+60UL) | ERRCODE_AREA_SBX | \
190 											ERRCODE_CLASS_RUNTIME)				// Method failed
191 #define	ERRCODE_BASIC_SETPROP_FAILED		((LAST_SBX_ERROR_ID+61UL) | ERRCODE_AREA_SBX | \
192 											ERRCODE_CLASS_RUNTIME)				// Unable to set property
193 #define	ERRCODE_BASIC_GETPROP_FAILED		((LAST_SBX_ERROR_ID+62UL) | ERRCODE_AREA_SBX | \
194 											ERRCODE_CLASS_RUNTIME)				// Unable to get property
195 
196 // Compiler Errors (do not occure at runtime)
197 // These IDs can shift at any time
198 
199 #define ERRCODE_BASIC_UNEXPECTED   			((LAST_SBX_ERROR_ID+63UL) | ERRCODE_AREA_SBX | \
200 											ERRCODE_CLASS_COMPILER)				// Unexpected symbol: xx
201 // #define	ERRCODE_BASIC_COMPILER_BGN			ERRCODE_BASIC_UNEXPECTED
202 #define ERRCODE_BASIC_EXPECTED				((LAST_SBX_ERROR_ID+64UL) | ERRCODE_AREA_SBX | \
203 											ERRCODE_CLASS_COMPILER)				// Expected: xx
204 #define ERRCODE_BASIC_SYMBOL_EXPECTED		((LAST_SBX_ERROR_ID+65UL) | ERRCODE_AREA_SBX | \
205 											ERRCODE_CLASS_COMPILER)				// Symbol expected
206 #define	ERRCODE_BASIC_VAR_EXPECTED			((LAST_SBX_ERROR_ID+66UL) | ERRCODE_AREA_SBX | \
207 											ERRCODE_CLASS_COMPILER)				// Variable expected
208 #define ERRCODE_BASIC_LABEL_EXPECTED		((LAST_SBX_ERROR_ID+67UL) | ERRCODE_AREA_SBX | \
209 											ERRCODE_CLASS_COMPILER)				// Label expected
210 #define	ERRCODE_BASIC_LVALUE_EXPECTED		((LAST_SBX_ERROR_ID+68UL) | ERRCODE_AREA_SBX | \
211 											ERRCODE_CLASS_COMPILER)				// Lvalue expected
212 #define	ERRCODE_BASIC_VAR_DEFINED			((LAST_SBX_ERROR_ID+69UL) | ERRCODE_AREA_SBX | \
213 											ERRCODE_CLASS_COMPILER)				// Variable xxx already defined
214 #define	ERRCODE_BASIC_PROC_DEFINED 			((LAST_SBX_ERROR_ID+70UL) | ERRCODE_AREA_SBX | \
215 											ERRCODE_CLASS_COMPILER)				// Procedure xx already defined
216 #define	ERRCODE_BASIC_LABEL_DEFINED			((LAST_SBX_ERROR_ID+71UL) | ERRCODE_AREA_SBX | \
217 											ERRCODE_CLASS_COMPILER)				// Label xxx already defined
218 #define	ERRCODE_BASIC_UNDEF_VAR				((LAST_SBX_ERROR_ID+72UL) | ERRCODE_AREA_SBX | \
219 											ERRCODE_CLASS_COMPILER)				// Variable xx undefined
220 #define	ERRCODE_BASIC_UNDEF_ARRAY			((LAST_SBX_ERROR_ID+73UL) | ERRCODE_AREA_SBX | \
221 											ERRCODE_CLASS_COMPILER)				// Array or function xx undefined
222 #define	ERRCODE_BASIC_UNDEF_PROC			((LAST_SBX_ERROR_ID+74UL) | ERRCODE_AREA_SBX | \
223 											ERRCODE_CLASS_COMPILER)				// Procedure xxx undefined
224 #define	ERRCODE_BASIC_UNDEF_LABEL			((LAST_SBX_ERROR_ID+75UL) | ERRCODE_AREA_SBX | \
225 											ERRCODE_CLASS_COMPILER)				// Label xxx undefined
226 #define	ERRCODE_BASIC_UNDEF_TYPE			((LAST_SBX_ERROR_ID+76UL) | ERRCODE_AREA_SBX | \
227 											ERRCODE_CLASS_COMPILER)				// Unknown user defined type xxx
228 #define	ERRCODE_BASIC_BAD_EXIT				((LAST_SBX_ERROR_ID+77UL) | ERRCODE_AREA_SBX | \
229 											ERRCODE_CLASS_COMPILER)				// Exit XXX expected
230 #define	ERRCODE_BASIC_BAD_BLOCK				((LAST_SBX_ERROR_ID+78UL) | ERRCODE_AREA_SBX | \
231 											ERRCODE_CLASS_COMPILER)				// Unterminated statement block: missing XX
232 #define	ERRCODE_BASIC_BAD_BRACKETS			((LAST_SBX_ERROR_ID+79UL) | ERRCODE_AREA_SBX | \
233 											ERRCODE_CLASS_COMPILER)				// Parentheses do not match
234 #define	ERRCODE_BASIC_BAD_DECLARATION		((LAST_SBX_ERROR_ID+80UL) | ERRCODE_AREA_SBX | \
235 											ERRCODE_CLASS_COMPILER)				// Symbol xx defined differently
236 #define	ERRCODE_BASIC_BAD_PARAMETERS		((LAST_SBX_ERROR_ID+81UL) | ERRCODE_AREA_SBX | \
237 											ERRCODE_CLASS_COMPILER)				// Parameters do not match
238 #define ERRCODE_BASIC_BAD_CHAR_IN_NUMBER	((LAST_SBX_ERROR_ID+82UL) | ERRCODE_AREA_SBX | \
239 											ERRCODE_CLASS_COMPILER)				// Bad character in number
240 #define	ERRCODE_BASIC_MUST_HAVE_DIMS		((LAST_SBX_ERROR_ID+83UL) | ERRCODE_AREA_SBX | \
241 											ERRCODE_CLASS_COMPILER)				// Array needs dimensioning
242 #define	ERRCODE_BASIC_NO_IF					((LAST_SBX_ERROR_ID+84UL) | ERRCODE_AREA_SBX | \
243 											ERRCODE_CLASS_COMPILER)				// Else/Endif without If
244 #define	ERRCODE_BASIC_NOT_IN_SUBR			((LAST_SBX_ERROR_ID+85UL) | ERRCODE_AREA_SBX | \
245 											ERRCODE_CLASS_COMPILER)				// xxx not allowed within a sub
246 #define	ERRCODE_BASIC_NOT_IN_MAIN			((LAST_SBX_ERROR_ID+86UL) | ERRCODE_AREA_SBX | \
247 											ERRCODE_CLASS_COMPILER)				// xxx not allowed outside a sub
248 #define	ERRCODE_BASIC_WRONG_DIMS			((LAST_SBX_ERROR_ID+87UL) | ERRCODE_AREA_SBX | \
249 											ERRCODE_CLASS_COMPILER)				// Dimensions do not match
250 #define	ERRCODE_BASIC_BAD_OPTION			((LAST_SBX_ERROR_ID+88UL) | ERRCODE_AREA_SBX | \
251 											ERRCODE_CLASS_COMPILER)				// Unknown option: xxx
252 #define	ERRCODE_BASIC_CONSTANT_REDECLARED	((LAST_SBX_ERROR_ID+89UL) | ERRCODE_AREA_SBX | \
253 											ERRCODE_CLASS_COMPILER)				// Constant xx redeclared
254 #define	ERRCODE_BASIC_PROG_TOO_LARGE		((LAST_SBX_ERROR_ID+90UL) | ERRCODE_AREA_SBX | \
255 											ERRCODE_CLASS_COMPILER)				// Program is too large
256 #define	ERRCODE_BASIC_NO_STRINGS_ARRAYS		((LAST_SBX_ERROR_ID+91UL) | ERRCODE_AREA_SBX | \
257 											ERRCODE_CLASS_COMPILER)
258 
259 #define	ERRCODE_BASIC_EXCEPTION      		((LAST_SBX_ERROR_ID+92UL) | ERRCODE_AREA_SBX | \
260 											ERRCODE_CLASS_RUNTIME)
261 
262 #define	ERRCODE_BASMGR_STDLIBOPEN			(LAST_SBX_ERROR_ID+93UL) | ERRCODE_AREA_SBX
263 #define	ERRCODE_BASMGR_STDLIBSAVE			(LAST_SBX_ERROR_ID+94UL) | ERRCODE_AREA_SBX
264 #define	ERRCODE_BASMGR_LIBLOAD				(LAST_SBX_ERROR_ID+95UL) | ERRCODE_AREA_SBX
265 #define	ERRCODE_BASMGR_LIBCREATE			(LAST_SBX_ERROR_ID+96UL) | ERRCODE_AREA_SBX
266 #define	ERRCODE_BASMGR_LIBSAVE				(LAST_SBX_ERROR_ID+97UL) | ERRCODE_AREA_SBX
267 #define	ERRCODE_BASMGR_LIBDEL				(LAST_SBX_ERROR_ID+98UL) | ERRCODE_AREA_SBX
268 #define	ERRCODE_BASMGR_MGROPEN				(LAST_SBX_ERROR_ID+99UL) | ERRCODE_AREA_SBX
269 #define	ERRCODE_BASMGR_MGRSAVE				(LAST_SBX_ERROR_ID+100UL) | ERRCODE_AREA_SBX
270 #define	ERRCODE_BASMGR_REMOVELIB			(LAST_SBX_ERROR_ID+101UL) | ERRCODE_AREA_SBX
271 #define	ERRCODE_BASMGR_UNLOADLIB			(LAST_SBX_ERROR_ID+102UL) | ERRCODE_AREA_SBX
272 
273 #define	ERRCODE_BASIC_ARRAY_FIX				((LAST_SBX_ERROR_ID+104UL) | ERRCODE_AREA_SBX | \
274 											ERRCODE_CLASS_COMPILER)				// This array is fixed
275 #define	ERRCODE_BASIC_STRING_OVERFLOW		((LAST_SBX_ERROR_ID+105UL) | ERRCODE_AREA_SBX | \
276 											ERRCODE_CLASS_COMPILER)				// Out of string space
277 #define	ERRCODE_BASIC_EXPR_TOO_COMPLEX		((LAST_SBX_ERROR_ID+106UL) | ERRCODE_AREA_SBX | \
278 											ERRCODE_CLASS_COMPILER)				// Expression too complex
279 #define	ERRCODE_BASIC_OPER_NOT_PERFORM		((LAST_SBX_ERROR_ID+107UL) | ERRCODE_AREA_SBX | \
280 											ERRCODE_CLASS_COMPILER)				// Can't perform requested operation
281 #define	ERRCODE_BASIC_TOO_MANY_DLL			((LAST_SBX_ERROR_ID+108UL) | ERRCODE_AREA_SBX | \
282 											ERRCODE_CLASS_COMPILER)				// Too many dll application clients
283 #define	ERRCODE_BASIC_LOOP_NOT_INIT			((LAST_SBX_ERROR_ID+109UL) | ERRCODE_AREA_SBX | \
284 											ERRCODE_CLASS_COMPILER)				// For loop not initialized
285 
286 #define	ERRCODE_BASIC_COMPAT				((LAST_SBX_ERROR_ID+103UL)| ERRCODE_AREA_SBX | ERRCODE_CLASS_RUNTIME)
287 
288 // Map old codes to new codes
289 #define	SbERR_SYNTAX						ERRCODE_BASIC_SYNTAX
290 #define	SbERR_NO_GOSUB						ERRCODE_BASIC_NO_GOSUB
291 #define	SbERR_REDO_FROM_START				ERRCODE_BASIC_REDO_FROM_START
292 #define	SbERR_BAD_ARGUMENT					ERRCODE_BASIC_BAD_ARGUMENT
293 #define SbERR_MATH_OVERFLOW					ERRCODE_BASIC_MATH_OVERFLOW
294 #define	SbERR_NO_MEMORY						ERRCODE_BASIC_NO_MEMORY
295 #define	SbERR_ALREADY_DIM					ERRCODE_BASIC_ALREADY_DIM
296 #define	SbERR_OUT_OF_RANGE					ERRCODE_BASIC_OUT_OF_RANGE
297 #define	SbERR_DUPLICATE_DEF                 ERRCODE_BASIC_DUPLICATE_DEF
298 #define	SbERR_ZERODIV                       ERRCODE_BASIC_ZERODIV
299 #define	SbERR_VAR_UNDEFINED                 ERRCODE_BASIC_VAR_UNDEFINED
300 #define	SbERR_CONVERSION                    ERRCODE_BASIC_CONVERSION
301 #define	SbERR_BAD_PARAMETER                 ERRCODE_BASIC_BAD_PARAMETER
302 #define	SbERR_USER_ABORT                    ERRCODE_BASIC_USER_ABORT
303 #define	SbERR_BAD_RESUME                    ERRCODE_BASIC_BAD_RESUME
304 #define	SbERR_STACK_OVERFLOW                ERRCODE_BASIC_STACK_OVERFLOW
305 #define	SbERR_PROC_UNDEFINED                ERRCODE_BASIC_PROC_UNDEFINED
306 #define SbERR_BAD_DLL_LOAD                  ERRCODE_BASIC_BAD_DLL_LOAD
307 #define	SbERR_BAD_DLL_CALL                  ERRCODE_BASIC_BAD_DLL_CALL
308 #define SbERR_INTERNAL_ERROR                ERRCODE_BASIC_INTERNAL_ERROR
309 #define SbERR_BAD_CHANNEL                   ERRCODE_BASIC_BAD_CHANNEL
310 #define	SbERR_FILE_NOT_FOUND                ERRCODE_BASIC_FILE_NOT_FOUND
311 #define	SbERR_BAD_FILE_MODE                 ERRCODE_BASIC_BAD_FILE_MODE
312 #define	SbERR_FILE_ALREADY_OPEN             ERRCODE_BASIC_FILE_ALREADY_OPEN
313 #define	SbERR_IO_ERROR                      ERRCODE_BASIC_IO_ERROR
314 #define	SbERR_FILE_EXISTS                   ERRCODE_BASIC_FILE_EXISTS
315 #define SbERR_BAD_RECORD_LENGTH             ERRCODE_BASIC_BAD_RECORD_LENGTH
316 #define	SbERR_DISK_FULL                     ERRCODE_BASIC_DISK_FULL
317 #define	SbERR_READ_PAST_EOF                 ERRCODE_BASIC_READ_PAST_EOF
318 #define SbERR_BAD_RECORD_NUMBER             ERRCODE_BASIC_BAD_RECORD_NUMBER
319 #define	SbERR_TOO_MANY_FILES                ERRCODE_BASIC_TOO_MANY_FILES
320 #define SbERR_NO_DEVICE                     ERRCODE_BASIC_NO_DEVICE
321 #define	SbERR_ACCESS_DENIED                 ERRCODE_BASIC_ACCESS_DENIED
322 #define	SbERR_NOT_READY                     ERRCODE_BASIC_NOT_READY
323 #define SbERR_NOT_IMPLEMENTED               ERRCODE_BASIC_NOT_IMPLEMENTED
324 #define	SbERR_DIFFERENT_DRIVE               ERRCODE_BASIC_DIFFERENT_DRIVE
325 #define	SbERR_ACCESS_ERROR                  ERRCODE_BASIC_ACCESS_ERROR
326 #define	SbERR_PATH_NOT_FOUND                ERRCODE_BASIC_PATH_NOT_FOUND
327 #define	SbERR_NO_OBJECT                     ERRCODE_BASIC_NO_OBJECT
328 #define SbERR_BAD_PATTERN                   ERRCODE_BASIC_BAD_PATTERN
329 #define	SBERR_IS_NULL                       ERRCODE_BASIC_IS_NULL
330 #define SbERR_DDE_ERROR                     ERRCODE_BASIC_DDE_ERROR
331 #define SbERR_DDE_WAITINGACK                ERRCODE_BASIC_DDE_WAITINGACK
332 #define SbERR_DDE_OUTOFCHANNELS             ERRCODE_BASIC_DDE_OUTOFCHANNELS
333 #define SbERR_DDE_NO_RESPONSE               ERRCODE_BASIC_DDE_NO_RESPONSE
334 #define SbERR_DDE_MULT_RESPONSES            ERRCODE_BASIC_DDE_MULT_RESPONSES
335 #define SbERR_DDE_CHANNEL_LOCKED            ERRCODE_BASIC_DDE_CHANNEL_LOCKED
336 #define SbERR_DDE_NOTPROCESSED              ERRCODE_BASIC_DDE_NOTPROCESSED
337 #define SbERR_DDE_TIMEOUT                   ERRCODE_BASIC_DDE_TIMEOUT
338 #define SbERR_DDE_USER_INTERRUPT            ERRCODE_BASIC_DDE_USER_INTERRUPT
339 #define SbERR_DDE_BUSY                      ERRCODE_BASIC_DDE_BUSY
340 #define SbERR_DDE_NO_DATA                   ERRCODE_BASIC_DDE_NO_DATA
341 #define SbERR_DDE_WRONG_DATA_FORMAT         ERRCODE_BASIC_DDE_WRONG_DATA_FORMAT
342 #define SbERR_DDE_PARTNER_QUIT              ERRCODE_BASIC_DDE_PARTNER_QUIT
343 #define SbERR_DDE_CONV_CLOSED               ERRCODE_BASIC_DDE_CONV_CLOSED
344 #define SbERR_DDE_NO_CHANNEL                ERRCODE_BASIC_DDE_NO_CHANNEL
345 #define SbERR_DDE_INVALID_LINK              ERRCODE_BASIC_DDE_INVALID_LINK
346 #define SbERR_DDE_QUEUE_OVERFLOW            ERRCODE_BASIC_DDE_QUEUE_OVERFLOW
347 #define SbERR_DDE_LINK_ALREADY_EST          ERRCODE_BASIC_DDE_LINK_ALREADY_EST
348 #define SbERR_DDE_LINK_INV_TOPIC            ERRCODE_BASIC_DDE_LINK_INV_TOPIC
349 #define SbERR_DDE_DLL_NOT_FOUND             ERRCODE_BASIC_DDE_DLL_NOT_FOUND
350 #define	SbERR_CANNOT_LOAD                   ERRCODE_BASIC_CANNOT_LOAD
351 #define	SbERR_BAD_INDEX                     ERRCODE_BASIC_BAD_INDEX
352 #define SbERR_NO_ACTIVE_OBJECT              ERRCODE_BASIC_NO_ACTIVE_OBJECT
353 #define	SbERR_BAD_PROP_VALUE                ERRCODE_BASIC_BAD_PROP_VALUE
354 #define	SbERR_PROP_READONLY                 ERRCODE_BASIC_PROP_READONLY
355 #define	SbERR_PROP_WRITEONLY                ERRCODE_BASIC_PROP_WRITEONLY
356 #define	SbERR_INVALID_OBJECT                ERRCODE_BASIC_INVALID_OBJECT
357 #define	SbERR_NO_METHOD                     ERRCODE_BASIC_NO_METHOD
358 #define	SbERR_NEEDS_OBJECT                  ERRCODE_BASIC_NEEDS_OBJECT
359 #define	SbERR_INVALID_USAGE_OBJECT          ERRCODE_BASIC_INVALID_USAGE_OBJECT
360 #define	SbERR_NO_OLE                        ERRCODE_BASIC_NO_OLE
361 #define	SbERR_BAD_METHOD                    ERRCODE_BASIC_BAD_METHOD
362 #define	SbERR_OLE_ERROR                     ERRCODE_BASIC_OLE_ERROR
363 #define	SbERR_BAD_ACTION                    ERRCODE_BASIC_BAD_ACTION
364 #define	SbERR_NO_NAMED_ARGS                 ERRCODE_BASIC_NO_NAMED_ARGS
365 #define	SbERR_BAD_LOCALE                    ERRCODE_BASIC_BAD_LOCALE
366 #define	SbERR_NAMED_NOT_FOUND               ERRCODE_BASIC_NAMED_NOT_FOUND
367 #define	SbERR_NOT_OPTIONAL                  ERRCODE_BASIC_NOT_OPTIONAL
368 #define	SbERR_WRONG_ARGS                    ERRCODE_BASIC_WRONG_ARGS
369 #define	SbERR_NOT_A_COLL                    ERRCODE_BASIC_NOT_A_COLL
370 #define	SbERR_BAD_ORDINAL                   ERRCODE_BASIC_BAD_ORDINAL
371 #define	SbERR_DLLPROC_NOT_FOUND             ERRCODE_BASIC_DLLPROC_NOT_FOUND
372 #define SbERR_BAD_CLIPBD_FORMAT             ERRCODE_BASIC_BAD_CLIPBD_FORMAT
373 #define	SbERR_PROPERTY_NOT_FOUND            ERRCODE_BASIC_PROPERTY_NOT_FOUND
374 #define	SbERR_METHOD_NOT_FOUND              ERRCODE_BASIC_METHOD_NOT_FOUND
375 #define	SbERR_ARG_MISSING                   ERRCODE_BASIC_ARG_MISSING
376 #define	SbERR_BAD_NUMBER_OF_ARGS            ERRCODE_BASIC_BAD_NUMBER_OF_ARGS
377 #define	SbERR_METHOD_FAILED                 ERRCODE_BASIC_METHOD_FAILED
378 #define	SbERR_SETPROP_FAILED                ERRCODE_BASIC_SETPROP_FAILED
379 #define	SbERR_GETPROP_FAILED                ERRCODE_BASIC_GETPROP_FAILED
380 // #define	SbERR_COMPILER_BGN					ERRCODE_BASIC_COMPILER_BGN
381 #define SbERR_UNEXPECTED                    ERRCODE_BASIC_UNEXPECTED
382 #define SbERR_EXPECTED                      ERRCODE_BASIC_EXPECTED
383 #define SbERR_SYMBOL_EXPECTED               ERRCODE_BASIC_SYMBOL_EXPECTED
384 #define	SbERR_VAR_EXPECTED                  ERRCODE_BASIC_VAR_EXPECTED
385 #define SbERR_LABEL_EXPECTED                ERRCODE_BASIC_LABEL_EXPECTED
386 #define	SbERR_LVALUE_EXPECTED               ERRCODE_BASIC_LVALUE_EXPECTED
387 #define	SbERR_VAR_DEFINED                   ERRCODE_BASIC_VAR_DEFINED
388 #define	SbERR_PROC_DEFINED                  ERRCODE_BASIC_PROC_DEFINED
389 #define	SbERR_LABEL_DEFINED                 ERRCODE_BASIC_LABEL_DEFINED
390 #define	SbERR_UNDEF_VAR                     ERRCODE_BASIC_UNDEF_VAR
391 #define	SbERR_UNDEF_ARRAY                   ERRCODE_BASIC_UNDEF_ARRAY
392 #define	SbERR_UNDEF_PROC                    ERRCODE_BASIC_UNDEF_PROC
393 #define	SbERR_UNDEF_LABEL                   ERRCODE_BASIC_UNDEF_LABEL
394 #define	SbERR_UNDEF_TYPE                    ERRCODE_BASIC_UNDEF_TYPE
395 #define	SbERR_BAD_EXIT                      ERRCODE_BASIC_BAD_EXIT
396 #define	SbERR_BAD_BLOCK                     ERRCODE_BASIC_BAD_BLOCK
397 #define	SbERR_BAD_BRACKETS                  ERRCODE_BASIC_BAD_BRACKETS
398 #define	SbERR_BAD_DECLARATION               ERRCODE_BASIC_BAD_DECLARATION
399 #define	SbERR_BAD_PARAMETERS                ERRCODE_BASIC_BAD_PARAMETERS
400 #define SbERR_BAD_CHAR_IN_NUMBER            ERRCODE_BASIC_BAD_CHAR_IN_NUMBER
401 #define	SbERR_MUST_HAVE_DIMS                ERRCODE_BASIC_MUST_HAVE_DIMS
402 #define	SbERR_NO_IF                         ERRCODE_BASIC_NO_IF
403 #define	SbERR_NOT_IN_SUBR                   ERRCODE_BASIC_NOT_IN_SUBR
404 #define	SbERR_NOT_IN_MAIN                   ERRCODE_BASIC_NOT_IN_MAIN
405 #define	SbERR_WRONG_DIMS                    ERRCODE_BASIC_WRONG_DIMS
406 #define	SbERR_BAD_OPTION                    ERRCODE_BASIC_BAD_OPTION
407 #define	SbERR_CONSTANT_REDECLARED           ERRCODE_BASIC_CONSTANT_REDECLARED
408 #define	SbERR_PROG_TOO_LARGE                ERRCODE_BASIC_PROG_TOO_LARGE
409 #define	SbERR_NO_STRINGS_ARRAYS             ERRCODE_BASIC_NO_STRINGS_ARRAYS
410 #define	SbERR_BASIC_EXCEPTION               ERRCODE_BASIC_EXCEPTION
411 #define	SbERR_BASIC_COMPAT                  ERRCODE_BASIC_COMPAT
412 #define	SbERR_BASIC_ARRAY_FIX				ERRCODE_BASIC_ARRAY_FIX
413 #define	SbERR_BASIC_STRING_OVERFLOW			ERRCODE_BASIC_STRING_OVERFLOW
414 #define	SbERR_BASIC_EXPR_TOO_COMPLEX		ERRCODE_BASIC_EXPR_TOO_COMPLEX
415 #define	SbERR_BASIC_OPER_NOT_PERFORM		ERRCODE_BASIC_OPER_NOT_PERFORM
416 #define	SbERR_BASIC_TOO_MANY_DLL			ERRCODE_BASIC_TOO_MANY_DLL
417 #define	SbERR_BASIC_LOOP_NOT_INIT			ERRCODE_BASIC_LOOP_NOT_INIT
418 // #define	SbERR_COMPILER_END					ERRCODE_BASIC_COMPILER_END
419 
420 /* ALT
421 #define	SbERR_SYNTAX				2       // unspecified syntax error
422 #define	SbERR_NO_GOSUB				3  		// Return without Gosub
423 #define	SbERR_REDO_FROM_START		4		// Redo form start (SB internal)
424 #define	SbERR_BAD_ARGUMENT			5   	// Invalid procedure call
425 #define SbERR_MATH_OVERFLOW			6   	// Overflow
426 #define	SbERR_NO_MEMORY				7   	// Out of memory
427 #define	SbERR_ALREADY_DIM			8    	// Array already dimensioned
428 #define	SbERR_OUT_OF_RANGE			9     	// Subscript out of range
429 #define	SbERR_DUPLICATE_DEF			10    	// Duplicate definition
430 #define	SbERR_ZERODIV				11    	// Division by zero
431 #define	SbERR_VAR_UNDEFINED			12      // Variable undefined (SB)
432 #define	SbERR_CONVERSION			13    	// Type mismatch
433 #define	SbERR_BAD_PARAMETER			14		// Invalid Parameter
434 #define	SbERR_USER_ABORT			18    	// User interrupt occurred
435 #define	SbERR_BAD_RESUME			20		// Resume without error
436 #define	SbERR_STACK_OVERFLOW		28  	// Out of stack space
437 #define	SbERR_PROC_UNDEFINED		35		// Sub or Function not defined
438 #define SbERR_BAD_DLL_LOAD			48		// Error in loading DLL
439 #define	SbERR_BAD_DLL_CALL			49		// Bad DLL calling convention
440 #define SbERR_INTERNAL_ERROR		51		// internal error
441 #define SbERR_BAD_CHANNEL			52  	// Bad file name or number
442 #define	SbERR_FILE_NOT_FOUND		53		// File not found
443 #define	SbERR_BAD_FILE_MODE			54		// Bad file mode
444 #define	SbERR_FILE_ALREADY_OPEN		55		// File already open
445 #define	SbERR_IO_ERROR				57     	// Device I/O error
446 #define	SbERR_FILE_EXISTS			58		// File already exists
447 #define SbERR_BAD_RECORD_LENGTH		59		// bad record length
448 #define	SbERR_DISK_FULL				61		// disk full
449 #define	SbERR_READ_PAST_EOF			62		// Input past end of file
450 #define SbERR_BAD_RECORD_NUMBER		63		// Bad record number
451 #define	SbERR_TOO_MANY_FILES		67 		// Too many files
452 #define SbERR_NO_DEVICE				68		// Device not available
453 #define	SbERR_ACCESS_DENIED			70		// Permission denied
454 #define	SbERR_NOT_READY				71		// Disk not ready
455 #define SbERR_NOT_IMPLEMENTED		73		// Feature not implemented
456 #define	SbERR_DIFFERENT_DRIVE		74		// No rename with different drive
457 #define	SbERR_ACCESS_ERROR			75		// Path/File access error
458 #define	SbERR_PATH_NOT_FOUND		76		// Path not found
459 #define	SbERR_NO_OBJECT				91		// Object variable not set
460 #define SbERR_BAD_PATTERN			93		// Invalid pattern string
461 #define	SBERR_IS_NULL				94		// Invalid use of Null
462 
463 // DDE messages from 250-299
464 #define SbERR_DDE_ERROR				250
465 #define SbERR_DDE_WAITINGACK		280
466 #define SbERR_DDE_OUTOFCHANNELS		281
467 #define SbERR_DDE_NO_RESPONSE		282
468 #define SbERR_DDE_MULT_RESPONSES	283
469 #define SbERR_DDE_CHANNEL_LOCKED	284
470 #define SbERR_DDE_NOTPROCESSED		285
471 #define SbERR_DDE_TIMEOUT			286
472 #define SbERR_DDE_USER_INTERRUPT	287
473 #define SbERR_DDE_BUSY				288
474 #define SbERR_DDE_NO_DATA			289
475 #define SbERR_DDE_WRONG_DATA_FORMAT	290
476 #define SbERR_DDE_PARTNER_QUIT		291
477 #define SbERR_DDE_CONV_CLOSED		292
478 #define SbERR_DDE_NO_CHANNEL		293
479 #define SbERR_DDE_INVALID_LINK		294
480 #define SbERR_DDE_QUEUE_OVERFLOW	295
481 #define SbERR_DDE_LINK_ALREADY_EST	296
482 #define SbERR_DDE_LINK_INV_TOPIC	297
483 #define SbERR_DDE_DLL_NOT_FOUND		298
484 
485 #define	SbERR_CANNOT_LOAD			323		// Can't load module
486 #define	SbERR_BAD_INDEX				341		// Invalid object index
487 #define SbERR_NO_ACTIVE_OBJECT		366		// No active view or document
488 #define	SbERR_BAD_PROP_VALUE		380		// Bad property value
489 #define	SbERR_PROP_READONLY			382		// Property is read only
490 #define	SbERR_PROP_WRITEONLY		394		// Property is write only
491 #define	SbERR_INVALID_OBJECT		420		// Invalid object reference
492 #define	SbERR_NO_METHOD				423		// Property or method not found
493 #define	SbERR_NEEDS_OBJECT			424		// Object required
494 #define	SbERR_INVALID_USAGE_OBJECT	425		// Invalid usee of object
495 #define	SbERR_NO_OLE				430		// Class does not support OLE
496 #define	SbERR_BAD_METHOD			438		// Object doesn't support method
497 #define	SbERR_OLE_ERROR				440		// OLE Automation error
498 #define	SbERR_BAD_ACTION			445		// Object doesn't support this action
499 #define	SbERR_NO_NAMED_ARGS			446		// Object doesn't support named args
500 #define	SbERR_BAD_LOCALE			447		// Object doesn't support current locale setting
501 #define	SbERR_NAMED_NOT_FOUND		448		// Named argument not found
502 #define	SbERR_NOT_OPTIONAL			449		// Argument not optional
503 #define	SbERR_WRONG_ARGS			450		// Wrong number of arguments
504 #define	SbERR_NOT_A_COLL			451		// Object not a collection
505 #define	SbERR_BAD_ORDINAL			452		// Invalid ordinal
506 #define	SbERR_DLLPROC_NOT_FOUND		453		// Specified DLL function not found
507 #define SbERR_BAD_CLIPBD_FORMAT		460		// Invalid clipboard format
508 
509 // Debugger messages from 700-799
510 
511 #define	SbERR_PROPERTY_NOT_FOUND	1000	// Class not have property
512 #define	SbERR_METHOD_NOT_FOUND		1001	// Class does not have method
513 #define	SbERR_ARG_MISSING			1002	// Missing required argument
514 #define	SbERR_BAD_NUMBER_OF_ARGS	1003	// Bad number of arguments
515 #define	SbERR_METHOD_FAILED			1004	// Method failed
516 #define	SbERR_SETPROP_FAILED		1005	// Unable to set property
517 #define	SbERR_GETPROP_FAILED		1006	// Unable to get property
518 
519 // Compiler Errors (do not happen at runtime)
520 // These IDs can shift at any time
521 
522 #define	SbERR_COMPILER_BGN			950
523 #define SbERR_UNEXPECTED   			951 // Unexpected symbol: xx
524 #define SbERR_EXPECTED				952	// Expected: xx
525 #define SbERR_SYMBOL_EXPECTED		953 // Symbol expected
526 #define	SbERR_VAR_EXPECTED			954	// Variable expected
527 #define SbERR_LABEL_EXPECTED		955 // Label expected
528 #define	SbERR_LVALUE_EXPECTED		956 // Lvalue expected
529 #define	SbERR_VAR_DEFINED			957	// Variable xxx already defined
530 #define	SbERR_PROC_DEFINED 			958 // Procedure xx already defined
531 #define	SbERR_LABEL_DEFINED			959	// Label xxx already defined
532 #define	SbERR_UNDEF_VAR				960	// Variable xx undefined
533 #define	SbERR_UNDEF_ARRAY			961	// Array or function xx undefined
534 #define	SbERR_UNDEF_PROC			962	// Procedure xxx undefined
535 #define	SbERR_UNDEF_LABEL			963 // Label xxx undefined
536 #define	SbERR_UNDEF_TYPE			964	// Unknown user defined type xxx
537 #define	SbERR_BAD_EXIT				965	// Exit XXX expexted
538 #define	SbERR_BAD_BLOCK				966	// Unterminated statement block: missing XX
539 #define	SbERR_BAD_BRACKETS			967	// Parentheses do not match
540 #define	SbERR_BAD_DECLARATION		968	// Symbol xx defined differently
541 #define	SbERR_BAD_PARAMETERS		969	// Parameters do not match
542 #define SbERR_BAD_CHAR_IN_NUMBER	970 // Bad character in number
543 #define	SbERR_MUST_HAVE_DIMS		971	// Array needs dimensioning
544 #define	SbERR_NO_IF					972	// Else/Endif without If
545 #define	SbERR_NOT_IN_SUBR			973	// xxx not allowed within a sub
546 #define	SbERR_NOT_IN_MAIN			974	// xxx not allowed outside a sub
547 #define	SbERR_WRONG_DIMS			975	// Dimensions do not match
548 #define	SbERR_BAD_OPTION			976	// Unknown option: xxx
549 #define	SbERR_CONSTANT_REDECLARED	977	// Constant xx redeclared
550 #define	SbERR_PROG_TOO_LARGE		978	// Program is too large
551 #define	SbERR_NO_STRINGS_ARRAYS		979
552 #define SbERR_COMPILER_END			299
553 */
554 
555 // Grid messages from 30000-30999
556 // OLE messages from 31000-31999
557 
558 #endif
559