user manual

Chapter 7 89
COM Object Reference
Variable
Variable
Part with heading “Variable” describes necessary variables when using the object. It
gives the description, data type, allowable range, preset value, unit, resolution, and
notes for variable (italic) shown in the syntax.
Variables declared as the string data type (String) are case insensitive. For variables
of the string type that indicate arguments (written as Param in the syntax), you can
omit lower-case letters.
The data types of the E5061A/E5062A COM objects include 5 types as shown in
Table 7-1. Before using variables, declare the data type of each variable. If you do
not declare the data type of a variable, it is automatically dealt as the variant type.
Examples
Part with heading “Examples” describes a simple example of how to use the object
for coding with E5061A/E5062A VBA.
Related Objects
Part with heading “Related objects” describes related objects when using the object.
Table 7-1 Data type
Data type Name Consumed
memory
Range
Long Long integer
type
4 bytes -2,147,483,648 to 2,147,483,647
Double Double
precision
floating point
type
8 bytes For a negative value:
-1.79769313486232E+308 to -4.94065645841247E-324
For a positive value:
-1.79769313486232E+308 to -4.94065645841247E-324
Boolean Boolean type 2 bytes -1 (True) or 0 (False)
String Character
string type
*1
1
byte/alphan
umeric
character
Up to approximately 2 billion characters
Variant Variant type 16 bytes No limitation
*1.For a fixed length string, declare the number of characters.