
GeoBASIC Reference Manual
2.GeoBasic Constructs
2-4 TPS1100-Version
1.30
VariableDeclaration ::= "
DIM
" Name [ SubscriptList ] "
AS
"
DataType
DataType
::=
( DataTypeName | "
STRING
" "
*
" Length )
SubscriptList ::=
"
(
" UpperBound { "
,
" UpperBound } "
)
"
UpperBound ::=
IntegerConstant
Length ::=
IntegerConstant
This syntax describes all possible variants of variable declarations. It contains
reserved words (
STRING
), delimiters (
"
(
"
,
"
)
"
) alternative and optional parts.
Examples of concrete sentences are:
DIM
i
AS Integer
DIM
a(10)
AS Double
DIM
s
AS String*10
Reserved words in the text
are written in
BOLD
letters, but without quotes.
References to GeoB
ASIC
code are written in
Courier
.
2.1.2 Examples
In some examples, definitions made in preceding examples, are used. Variable
declarations are used before they are introduced formally, details can be found in
Section 2.3.2 on Declaration of Variables.
2.1.3
Declarations and Statements
Declarations and statements are normally terminated by "end-of-line" (carriage
return) or by a comment (see next Section 2.1.4); nevertheless, long declarations
and statements may be spread over several lines. Type (structure) and routine
declarations and structured statements will always occupy several lines. A single
line may never contain more than one declaration or statement.
2.1.4 Comments
Comments may be added at the end of a statement line. A comment is introduced
by an apostrophe ( ' ), and all characters to the right of it up to the end of the line
are ignored by the compiler. The comment is terminated by the end of the line; for
Содержание 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 ...