
GeoBASIC User Manual
8 — Typical GeoBASIC Programming
8-10 TPS1100-Version
2.10
The
base name
succinctly describes the object. For example,
PointNumber
or
just
PointNo
for the number of a point. Object
tags
are short abbreviations and
simplifications describing the type of the object. For example, the tag '
i
' in
iPointNo
denotes that the type of the variable is
Integer
. The following table
lists the tags for the GeoBASIC types.
type tag
Integer
i
Logical
l
Double
d
Distance
d
Subdistance
d
Angle
d
Pressure
d
Temperature
d
String
s
Note that all types which represent floating point numbers are tagged by '
d
'. This is
because operations valid for the type
Double
are also valid for the other
d
–
tagged types.
If there are several similar object names, a
qualifier
may follow the name and
further clarify it. For example if we kept two special point numbers, one for the
first point and one for the last, the variable names would be the (qualified)
variables
iPointNoFirst
and
iPointNoLast
.
Structure types
do not have a default prefix, if needed the (abbreviated) type name
could be used. For
arrays
the base name itself could contain the information that
the variable names an array.
For
global variables
an additional prefix '
g
' might be useful.
8.3.2
Constants and user-defined types
Constants
begin with an upper case character. If constants contain only upper case
characters (as most of the predefined constants do) the underscore '_' is used to
separate parts of the name. Often constants can be grouped together, then a prefix
is used to denote their common criterion. For example the return codes use RC, as
in
RC_OK, RC_ABORT
, 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 ...