
GeoB
ASIC
Reference Manual
5.Standard Functions
5-14 TPS1100-Version
1.30
5.4.5 Left$ - Left substring
Left$(S,N)
yields the substring consisting of the first
N
characters of the string
expression
S
.
N
must be an expression of type
Integer
. The result is of type
string * N
.
Example:
Left$ ("Railwaytrack", 4) -> "Rail"
5.4.6 Right$ - Right substring
Right$(S,N)
yields the substring consisting of the last
N
characters of the
string expression
S
.
N
must be an expression of type
Integer
. The result is of
type
string * N
.
Example:
Right$ ("Railwaytrack", 5) -> "track"
5.4.7 Mid$ - Substring anywhere
Mid$(S,K,N)
yields the substring consisting of
N
characters of the string
expression
S
, starting at the
K
-th character.
K
and
N
must be expressions of type
Integer
. The length of the resulting string is
N
. If parameter
N
is omitted, the
substring runs to the end of
S
.
Examples:
Mid$ ("Railwaytrack", 5, 3) -> "way"
Mid$ ("Railwaytrack", 9) -> "rack"
Mid$
can also be used to assign a character or a substring to another string at a
certain place. With
Mid$(S,K,N) = T
single characters of a string can be set
or replaced. If the length of
T
is higher than
N
, only the first
N
characters of
T
are set in
S
. Is parameter
N
omitted, the whole substring
T
will be inserted in
S
(if the length of
S
this allows).
Содержание 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 ...