
GeoBASIC Reference Manual
2.GeoBasic Constructs
TPS1100-Version 1.30
2-21
♦
Variables of simple types.
variable type
iSum
Integer
dAngleDifference
Angle
dHorizontalDistance
Distance
lValidPoint
Logical
♦
Variables of compound types.
variable with
component/element
type
Point1
CartesianPointType
Point1.iNumber
Integer
Point1.dEastY
Double
ArrayArray
ArrayArrayType
ArrayArray(1)
DoubleArray
ArrayArray(1)(1)
Double
Matrix
MatrixType
Matrix( 1, 1 )
Double
Matrix( x, y )
Double
(with x and y integer variables within the bounds)
For further examples see Sections 2.2.3 on Declaration of Arrays, 2.2.4 on
Declaration of Structures, and 2.3.2 on Declaration of Variables.
2.5 EXPRESSIONS
Syntax:
Expression
::= LogicalTerm { "
OR
" LogicalTerm }
LogicalTerm
::= LogicalFactor { "
AND
" LogicalFactor }
LogicalFactor
::= { "
NOT
" } LogicalPrimary
LogicalPrimary
::= SimpleExpression [ RelationOperator
SimpleExpression ]
RelationOperator ::= ( "
=
" | "
<>
" | "
>
" | "
<
" | "
>=
" | "
<=
" )
SimpleExpression ::= [ AddOperator ] Term
{ AddOperator Term }
AddOperator
::= ( "
+
" | "
-
" )
Term
::= Factor { MultOperator Factor }
MultOperator
::= ( "
*
" | "
/
" | "
\
" | "
MOD
" )
Factor
::= Primary [ "
^
" Factor ]
Primary
::= ( Variable | Constant | FunctionCall |
Содержание 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 ...