
GeoB
ASIC
Reference Manual
5.Standard Functions
5-12 TPS1100-Version
1.30
Example
The example uses the
SFormat
function to generate strings.
sFormatVal = SFormat( "Double = %lf", 3.5e-4 )
' sFormatVal -> "Double = 0.000350"
sFormatVal = SFormat( "Integer = %ld", -10 )
' sFormatVal -> "Integer = -10"
sFormatVal = SFormat( "Logical = %s", TRUE )
' sFormatVal -> "Logical = T"
sFormatVal = SFormat( "Hex = %lX", 15 )
' sFormatVal -> "Hex = F"
sFormatVal = SFormat( "Octal = %lo", 15 )
' sFormatVal -> "Octal = 17"
sFormatVal = SFormat( "Double=%.6lf",1111.12345)
' sFormatVal -> "Double = 1111.123450"
sFormatVal = SFormat("Double=%+.6lf",1111.12345)
' sFormatVal -> "1111.123450"
5.4 STRING TO STRING
5.4.1 UCase$ - Change to upper case
UCase$(S)
yields the string expression
S
with all lower case letters "a" to "z"
replaced by their upper case. Any other character is unchanged. The result is of
type
string * n
, where n is the length of
S
.
Examples:
UCase$ ("Start")
-> "START"
UCase$ ("kürzer/länger?") -> "KüRZER/LäNGER?"
(umlaut unchanged!)
Содержание 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 ...