
GeoB
ASIC
Reference Manual
3. TPS 1100 system and GeoBasic
TPS1100-Version 1.30
3-5
3.6 GLOBAL RETURN CODES
In this section the general return codes are briefly described. Note that function
specific return codes are found in the function description, and that details on error
handling are found in Chapter 2.8.
Global Return Codes.
1. After a standard function or system function is called, the GeoB
ASIC
variable
ERR
contains its
return code
. If everything went smoothly, it is set to the
predefined constant
RC_OK
, and normal program execution goes on.
However, if there was an error,
ERR
is set to the corresponding error code.
(Therefore, we will rather use the term
ERROR CODES
for values other than
RC_OK
.)
2. Every function may have a set of possible error codes defined. If the result of
a function is not
RC_OK
, the variable
ERR
will contain one of those error
codes, describing the function's termination condition.
3. If the error handling is active (
ON ERROR GOTO
, see Chapter Error
Handling), any error code will start the error handler after return from the
erroneous function.
4. Usually error codes are grouped by the subsystem to which they are
meaningful to (for example
TMC_…
for measurement error codes like
TMC_ANGLE_ERROR
,
TMC_DIST_ERROR,
etc.), but some error codes are
generally applicable, for example if there has been a fatal error, an abort, etc.
A summary of all return codes is listed in Appendix F.
Содержание tps1100
Страница 1: ...GeoBASIC FOR TPS1100 User Manual Version 2 10 1997 2001 Leica Geosystems AG Heerbrugg Switzerland ...
Страница 150: ...GeoBASIC FOR TPS1100 Reference Manual Version 2 10 1997 2001 Leica Geosystems AG Heerbrugg Switzerland ...
Страница 411: ...GeoBASIC Reference Manual 6 System Functions TPS1100 Version 1 30 6 7 6 5 35 CSV_LibCallAvailable 6 213 ...
Страница 620: ...TPS1100 Version 2 10 6 1 ...
Страница 621: ......
Страница 623: ...TPS1100 Version 2 10 6 1 ...
Страница 624: ......
Страница 1053: ...TPS1100 Version 1 30 E 1 Appendix E GEOFONT ...
Страница 1154: ...GeoBASIC Reference Manual Appendix J List of Predefined Identifiers TPS1100 Version 1 30 J 9 TMC_SetOffsetDist 6 128 ...