
GeoBASIC Reference Manual
2.GeoBasic Constructs
TPS1100-Version 1.30
2-5
longer comments, simply use another apostrophe on the next line. Comments may
stand by themselves on a line.
Examples:
♦
Comments may take the whole line.
'This is a comment line.
'The comment may continue on the next line.
♦
Typically comments give more meaning to the program code. (The exact
meaning of the GeoB
ASIC
code is not of importance here, you will learn about
it later in this manual.)
'declare variables
DIM iFirstPoint
AS Integer 'the number of the
'
first point
DIM lButtonPressed AS Logical 'indicates whether
'
a button was
'
pressed
'initialize the variables
iFirstPoint = 1
'the first point
'
has the number 1
♦
Comments may give additional information and structure the program code.
'====================================================
'Program name : Athletics Distance Measurement
'Creation date: April 2, 1996
'Copyright
: Leica, Switzerland
'====================================================
'----------------------------------------------------
'this comment says that this is the last example
'for comments
'----------------------------------------------------
Note
Comments should explain what is going on in the program without
having to work through the program code. They are intended for
humans trying to understand the program.
Содержание 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 ...