
GeoBASIC User Manual
8
—
Typical
GeoBASIC Programming
TPS1100-Version 2.10
8-3
kind according to the theodolite settings. Unit conversions are done by the system,
all values with units defined in basic are considered to have to SI units. (See
Chapter 9.1)
All numeric output appears right aligned in their field (specified by coordinates
and length). String output appears left aligned.
Each input/output routine needs a parameter
lValid
which defines if the value
of the object is valid or not. If a value is not valid five dashes are displayed instead
of the value.
Every numeric input/output needs a parameter
iLen
which determines the total
character length of the field. If the length is to short for the representation of the
numeric value, the field will be filled with the character ‘x’.
8.1.4
Output in text dialog
•
Strings:
MMI_PrintStr(0, 0, “I am a text dialog object.”, TRUE)
Parameters: column, line, string, lValid
•
Integer values:
MMI_PrintInt(10, 1, 10, 10578, TRUE)
Parameters: column, line, iLen, integer value, lValid
•
Double (floating point) values without unit:
MMI_PrintVal(10, 2, 10, 3, 90478.568, TRUE,
MMI_DEFAULT_MODE)
Parameters: column, line, iLen, decimals, double value, lValid, Mode
•
Double (floating point) values with unit:
DIM hz AS Angle
hz = PI/4
MMI_PrintVal(10, 3, 8, 3, hz, TRUE, MMI_DIM_ON)
Parameters: column, line, iLen, decimals, double value, lValid, Mode
8.1.5
Input in text dialog
Input is roughly dual to the output, except that the input functions return the button
id of the button that terminated the edit process. For all numeric values there are
the minimum and maximum values defined. The value is only valid, if it is
between them.
Содержание 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 ...