Leica tps1100 Reference Manual page 22

Hide thumbs Also See for tps1100:
Table of Contents

Advertisement

GeoCOM Reference Manual
String data type
Character and string types are replaced by
data types of C/C++ and VBA are not directly interchangeable, the
programmer has to take certain care of the necessary pre- and post-
processing of variables of this data type. Please refer to the example below.
Enumeration data type
Conceptually VBA does not have enumeration data types. Therefore,
data types will be used instead. The enumeration values will be defined by
constants. Using the numerical value is also valid. Notice that some of the
enumeration values are reserved words in VBA. That is why we had to
define different identifiers. Enumerated return values are numerical values
and correspond to the position of the enumeration value in the C/C++-
definition. For clarification, also the numerical values are given in the
description of an enumeration data type.
Structures and Arrays
They are defined as in C/C++.
Example for Enumeration Data Types and Structures
The following example gives the data type declaration and the procedure
declaration usually used in this manual for an example procedure
(
TMC_GetSimpleMea
Calculation):
VBA-Declaration
VB_TMC_GetSimpleMea(
In the file
Global Const TMC_MEA_INC = 0
Global Const TMC_AUTO_INC = 1
Global Const TMC_PLANE_INC = 2
Global Const TMC_APRIORI_INC = 3
Global Const TMC_ADJ_INC = 4
Global Const TMC_REQUIRE_INC = 5
Type TMC_HZ_V_ANG
TPS1100 - Version 1.05
from the subsystem Theodolite Measurement and
WaitTime
OnlyAngle
SlopeDistance
Mode
stubs32p.bas
dHz
As Double
dV
As Double
Fundamentals of Programming GeoCOM
string
As Long,
As TMC_HZ_V_ANG,
As Double,
As Long)
the corresponding items are defined:
data types. Since string
Long
3-9

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents