
GeoBASIC Reference Manual
2.GeoBasic Constructs
2-42 TPS1100-Version
1.30
The program name may have up to 18 characters.
2.10
OUTPUT TO THE DISPLAY
Input and output to the display device is not handled by GeoB
ASIC
directly;
instead, necessary system routines are called. However, for testing purposes, it is
often convenient to have some rudimentary output facilities. GeoB
ASIC
provides a
WRITE
-statement for this purpose. The simple types (
Integer
,
Double
,
Logical
) and strings can be written one per call.
2.10.1 Write
Note
During execution of a GeoB
ASIC
program on TPS-1100 system a
WRITE
- statement has no effect at all. The described behaviour can be
observed only if the program is executed on the TPS-Simulator.
Syntax:
IOStatement ::=
"
WRITE
" Expression
On output, the evaluated expression is written on one line, terminated by return /
new line.
Numeric values are written in a standard format, which for doubles depends on the
value. No blanks are output before or after the number.
Logical values are written as
T
(true) or
F
(false), again without surrounding
blanks.
Strings are written as they are, without surrounding quotes or blanks. Output
strings may contain any printable characters, including blanks and tabs.
A WRITE-call closes the output with CR-LF automatically.
Examples:
♦
We do some output.
Содержание 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 ...