
GeoBASIC User Manual
8 — Typical GeoBASIC Programming
8-12 TPS1100-Version
2.10
SUB LabelExample ()
'code of the procedure
LabelExample_Err:
SELECT CASE ERR
'handle specific errors here
CASE ELSE
'generic error handler here
END SELECT
END LabelExample
8.3.6
Remark on naming conventions
Naming conventions never replace the judicious use of comments in your
GeoBASIC program code. Naming conventions are an extension of, not a
replacement for, good program-commenting techniques.
Formulating, learning, and applying a consistent naming style require a significant
initial investment of time and energy. However, you will be amply rewarded when
you return to your application a year later to do maintenance or when you share
your code with others. Once you implement standardised names, you will quickly
grow to appreciate the initial effort you made.
To complete the discussion about naming conventions, we mention the use of
program headers:
In every function/subprocedure there should be a header describing, at a minimum,
purpose, and parameters passed and/or returned. (In addition there might be
comments, the author's name, last revision date, notes, etc.)
Содержание 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 ...