
GeoBASIC Reference Manual
2.GeoBasic Constructs
2-6 TPS1100-Version
1.30
2.1.5 Names
Names (
identifiers
) may be up to 40 characters long. They must begin with a letter
and may contain letters, digits, the $-sign, and the underscore character ( _ ).
Upper and lower case letters are not distinguished. The reserved words cannot be
used as names (see Appendix C for the list of reserved words and Appendix E for
predefined identifiers). All user-defined names must be declared before they are
used in a program.
The scope of names follows the usual rules for block structured languages, i.e. all
names declared at the program level are known and unable from the point of their
declaration, unless an object is hidden by a locally defined object of the same
name. Names declared at the local (subroutine or function) level are known and
unable inside the subroutine or function only, from the point of their declaration
through the end of the routine.
In general global objects with the same name as local objects are hidden by the
local objects and
not
visible within the local scope. Despite this rule variable and
constant names may not get the same name as global type names.
Field names within structures are local to the structure and can be accessed only
through the name of the structure variable; thus, for field names there can never be
a name conflict with either globally or locally declared objects, or indeed with
field names of other structures.
In the following syntax definitions, all terms containing "
Name
", such as
VariableName
,
TypeName
, etc. signify a name according to this definition.
Note
In certain cases the length of names should be no longer than 18
characters. E.g. for using
MMI_CreateMenuItem
the programmer
has to provide a global program name (the application name) and a
subroutine name.
If you plan to use the program with other languages than the default
language, then you have to use a tool to edit and translate the tokens
which are used in the program. This tool supports only names up to 18
characters for the application name. Hence the application name and
global subroutine names have been limited to 18 characters.
Содержание 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 ...