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.

Table 7-1

Data type

 

 

 

 

 

 

Data type

Name

 

Consumed

Range

 

 

 

memory

 

 

 

 

 

 

Long

Long integer

 

4 bytes

-2,147,483,648 to 2,147,483,647

 

type

 

 

 

 

 

 

 

 

Double

Double

 

8 bytes

For a negative value:

 

precision

 

 

-1.79769313486232E+308 to -4.94065645841247E-324

 

floating point

 

 

For a positive value:

 

type

 

 

 

 

 

-1.79769313486232E+308 to -4.94065645841247E-324

 

 

 

 

 

 

 

 

 

Boolean

Boolean type

 

2 bytes

-1 (True) or 0 (False)

 

 

 

 

 

String

Character

 

1

Up to approximately 2 billion characters

 

string type *1

 

byte/alphan

 

 

 

 

umeric

 

 

 

 

character

 

 

 

 

 

 

Variant

Variant type

 

16 bytes

No limitation

 

 

 

 

 

*1.For a fixed length string, declare the number of characters.

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.

Chapter 7

89

Page 97
Image 97
Agilent Technologies 87075C manual Variable, Examples, Related Objects, Data type Name Consumed Range Memory