
GeoBASIC Reference Manual
2.GeoBasic Constructs
TPS1100-Version 1.30
2-25
The logical operators (
not
,
and
,
or
) require their operands (one for
not
, two
for
and
and
or
) to be of type
Logical
. The result is, of course, also of type
Logical
.
2.5.1.7 String concatenation (
+
):
Both operands must be string expressions, and the result is again a string, whose
length is the sum of the lengths of the two operands and must be less than 256. If
string manipulation functions are used in string expressions, all intermediate
results from concatenation or string generation must be less than 256 characters
long.
Examples
♦
Now we show some examples for string comparison.
expression value
"Sun" < "Sunny"
TRUE
"Sun" > "Moon"
TRUE
"Sun" <> "Sun "
TRUE
"Sun" > "Sun "
FALSE
"Sun" > "Sun"
FALSE
"Sun" < "Sun"
FALSE
"Sun" = "Sun"
TRUE
" " > ""
TRUE
2.6 STATEMENTS
Syntax:
StatementSequence ::= { [ ErrorLabel ] Statement }
ErrorLabel
::= HandlerLabel "
:
"
Statement
::= ( SequentialStatement |
SelectionStatement |
LoopStatement |
OnErrorStatement |
ExitStatement |
IOStatement )
The error label is used in conjunction with the
ON
-
ERROR
-statement, see Section
2.8; it must be written on a line by itself, i.e. the statement following it must be on
a new line.
Содержание 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 ...