
GeoBASIC User Manual
8
—
Typical
GeoBASIC Programming
TPS1100-Version 2.10
8-11
Mostly constants are globally defined. For
local constants
an additional prefix
'loc'
might be useful.
User defined types
begin with an upper case character. Use the postfix '
_TYPE
',
'_Type'
or '
Type
' (according to the naming convention used for the type name
itself) appended to the type name to denote that it is a type structure. Alternatively,
you can use a prefix '
T
'. (For types these conventions are useful since GeoBASIC
is not case sensitive. Hence, for example, if there is a type
Date
no variable can
be named
date
. If the type has the name
TDate
or
Date_Type
or
DateType
,
there can.) As for local constants,
local types
might be prefixed with
'loc'
.
8.3.3 Procedures
A procedure name begins with an upper case letter and succinctly describes the
action that is performed. Variables that denote parameters passed to a function or
subroutine (in the parentheses after the function/subroutine name) should be well
documented, also indicating whether they act as
input
,
output
, or
input and output
parameters.
8.3.4 Keywords
GeoBASIC keywords are all in upper case letters. For example,
DIM
,
FOR
,
LOOP
,
FUNCTION
, etc.
8.3.5 Labels
For error labels (ON ERROR GOTO) we use the function/subprocedure name with
the qualifier
'_Err'
appended.
Содержание 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 ...