
GeoB
ASIC
Reference Manual
5.Standard Functions
5-8 TPS1100-Version
1.30
5.3.4 SFormat Function
Description
Generate a string using a value according to a C-format
specification.
Syntax
SFormat( byVal sFormatStr AS String,
byVal iValue
AS Integer )
AS String
SFormat( byVal sFormatStr AS String,
byVal dValue
AS Double
)
AS String
SFormat( byVal sFormatStr AS String,
byVal lValue
AS Logical )
AS String
Remarks
The first argument is an input parameter and must contain a valid
format specification for
value
. It has to follow the general rules
of GeoB
ASIC
strings and may be of any string type.
The second argument
value
can be any valid numeric (integer,
double) or logical expression.
A double value larger than 10
250
with „%f“ formatting will result
in the string
"xxxxxxxxxx"
, since the value can be transformed
to a maximum of 250 characters only.
Note
The format string and the value argument must match.
sFormatStr255
may contain only one
"%"
. More
than one
"%"
are not allowed and may lead to
unpredictable behaviour.
Other than the here explained formatting sequences are
not allowed and may lead to unpredictable behaviour.
The computed result cannot be larger than 255 characters
long in any case.
Содержание 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 ...