
GeoBASIC Reference Manual
2.GeoBasic Constructs
2-8 TPS1100-Version
1.30
2.1.7
Strings and Tokens
Strings (of characters) may be 0 to 255 characters long and are enclosed in a pair
of double quotes ( " " ). Any printable character may be included; lower and upper
case letters are distinguished. If a double quote is to be part of the string, it must be
written twice. The character-set is described in Appendix E.
Special characters are supported by the notation ‘\d255’ which represents one
character that has the decimal value composed by the three digits. The special
character ‘\d000’ is not part of the supported character set, because it’s internal use
is to terminate the string. Only decimal values of characters between 1 and 255 are
supported.
Due to the notation of special characters a ‘\’ has to be written as ‘\\’.
Examples:
♦
The smallest string is the empty string. Then follow one character strings.
""
'the empty string
" "
'a string containing one blank
"a"
'a string containing the character a
♦
Normally, strings are somewhat larger.
"This is a string."
'a string with
'17 characters
♦
Strings can contain special characters.
"Slope distance: \d001"
'a string with a
'special character
♦
Strings can also contain quotes.
"The states are ""0"" and ""1""" 'a string
' containing
' double quotes
♦
The last example prints as
«The states are "0" and "1"».
Token
The TPS-1100 series system software implements a special facility to support
different natural languages for the user interface. This feature is based on token
processing. With GeoB
ASIC
we can simulate this by passing tokens to system
software routines. In the documentation parameters of this type are denoted by the
Содержание 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 ...