
GeoBASIC Reference Manual
2.GeoBasic Constructs
2-40 TPS1100-Version
1.30
•
If control is transferred from outside to a label inside a structured statement,
this may have undefined consequences, e.g. in case of a
FOR
-statement.
Such transfers must be avoided.
Note
ERROR
,
GOTO
, and
RESUME
are not reserved words, but
ON
is.
Examples:
♦
First, a simple example. An error will be ignored and passed to the caller.
SUB ABC
ON ERROR RESUME NEXT
...
'statements
CALL ExternalSystemRoutine (..)
...
'statements
END ABC
♦
The next example shows an external system routine call. If an error occurs,
then the statements in
ErrLab
may make some changes and try the execution
again. If the error occurs a second time, the program aborts immediately.
SUB Dispatch
LABEL ErrLab
...
'statements
ON ERROR GOTO ErrLab
CALL ExternalSystemRoutine (..)
EXIT
ErrLab:
... 'make changes
ON ERROR GOTO 0
'abort next time
CALL ExternalSystemRoutine (..)
...
'statements
END Dispatch
Содержание 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 ...