
GeoBASIC Reference Manual
2.GeoBasic Constructs
2-18 TPS1100-Version
1.30
CONST sHelpText = "This is the help text of the "
+
"athletics program. As you can "
+
"see it can extend over several " +
"lines."
♦
When declaring constants, the built in arithmetic may be used (but no function
calls).
CONST TwoPi AS Double = 2.0*Pi
2.3.2
Declaration of Variables
Syntax:
VariableDeclaration ::= "
DIM
" Name [ SubscriptList ] "
AS
"
DataType
DataType
::= ( DataTypeName | "
STRING
" "
*
"
Length )
SubscriptList ::=
"
(
" UpperBound { "
,
" UpperBound } "
)
"
UpperBound ::=
IntegerConstant
Length ::=
IntegerConstant
There are no implicit variable types; all variables used by the program must be
explicitly declared to be of a certain data type, whose name may be one of the
predefined types (see Section 2.2 on Data Types) or a previously declared array or
structure type name (see Section 2.2.3 on Declaration of Arrays, and 2.2.4 on
Declaration of Structures). Alternatively, array variables may be declared directly,
as explained in the following paragraph.
If a subscript list is specified with the variable name, the variable will denote an
array of as many dimensions as there are bounds specified. The upper bounds must
be positive integer constants. Subscripting always starts at 1; thus each dimension
has "UpperBound" entries. Each element of the array will be of the data type
specified.
Variables are known only inside the unit where they are declared.
For string variables and arrays of strings, "Length" specifies the maximum number
of characters the variable or the array element is to hold and must be a positive
Содержание 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 ...