
GeoB
ASIC
Reference Manual
5.Standard Functions
TPS1100-Version 1.30
5-21
Example
In the example the user can enter a slope distance and a zenith
angle. Out of this the horizontal length is computed and displayed.
DIM dSlopeDist AS Distance
'slop distance
DIM dZenith
AS Angle
'zenith angle
DIM dHorizDist AS Distance
'computed
horizontal distance
DIM iButton
AS Integer
'button id
PrintStr( 0, 0, "Slope dist.:" )
InputVal( 19, 0, MMI_FFORMAT_DISTANCE, 8, 2,
dSlopeDist, TRUE, 0.0, 10000.0,
iButton )
PrintStr( 0, 1, "Zenith angle:" )
InputVal( 19, 1, MMI_FFORMAT_ANGLE, 8, 3,
dZenith, TRUE, 0.0, 2*Pi, iButton )
dHorizDist = dSlopeDist * Sin( dZenith )
PrintStr( 0, 2, "Horiz. Dist:" )
PrintVal( 19, 2, 8, 2, dHorizDist,
TRUE, MMI_DIM_ON )
5.5.8 Sqr Function
Description
Returns the square root of a number.
Declaration
Sqr( dNumber AS Double ) AS Double
Remarks
The
argument
dNumber
can be any valid numeric expression that
denotes a value greater than or equal to zero. The return type of
Sqr
is
Double
.
Example
The example uses
Sqr
to calculate the square root of a user-
supplied number.
Содержание 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 ...