This section includes the core data types used by
4Test.
Data Type Ranges
This topic describes the range of valid values for the core built-in 4Test data types.
AGENTOPTION Data Type
When you want to get or set the value of an agent option, you use the appropriate constant from the AGENTOPTION data type to identify the option.
COLOR Data Type
Describes the RGB values of a color, as returned by the GetBackgroundColor method.
CURSOR Data Type
A data type that identifies the kind of cursor represented by an instance of the CursorClass class.
DATACLASS Data Type
The legal values of the DATACLASS type are the names of all the 4Test classes, including user-defined classes-for example, MainWin, ChildWin, and CursorClass.
DATASETSIZES Data Type
Describes the units for a byte-based size value, such as for disk free space or file size.
DATATYPE Data Type
The legal values of the DATATYPE type are the names of data types, for example INTEGER and BOOLEAN.
DATE Data Type
A variable of type DATE holds values for a calendar year, month, and day.
DATETIME Data Type
A variable of type DATETIME stores a date plus a time calculated to microseconds.
HANDLE Data Type
A handle is an identification code provided for certain types of object so that you can pass it to a function that needs to know which object to manipulate.
LONG Data Type
Use a variable of type LONG to store integers that require four bytes.
LVSTYLE Data Type
Describes the style of a listview: single, extended, or multiple.
LVVIEW Data Type
Stores information about the means available for viewing elaborated list box controls.
MEMINFO Data Type
Describes the Windows performance counters: a process's working set; the largest address in a process's virtual address space; the number of bytes of writeable, committed memory in a process's address space; and the number of bytes of private (unshared) memory in a process's address space.
MODIFIERKEYSTATE Data Type
This enumeration contains key modifiers that the Open Agent typically uses as arguments for click functions.
NODE Data Type
A NODE represents one element in a tree. NODE data contains the text of the corresponding tree element.
NUMBER Data Type
A variable of type NUMBER stores either integers or real numbers.
PINTERFACE Data Type
Certain properties and methods have a pointer to an ActiveX interface as their return type, for example, a pointer to an IDispatch interface. Such a pointer is represented in 4Test as a PINTERFACE type.
POINT Data Type
Position coordinates typically used to specify a screen or window location.
PROPINFO Data Type
Stores the name, current value, and data type for one class property
REAL Data Type
A variable of type REAL stores floating point numbers in this format.
RECORD Data Type
A record data type is a compound data type that is made up of fields.
RECT Data Type
Lists the information necessary to specify a rectangle relative to a window, the entire screen, or some other coordinate space.
SBRANGE Data Type
Holds the minimum and maximum values to which a ScrollBar or UpDown object can be set.
SCLRANGE Data Type
Holds the minimum and maximum values to which a Scale object can be set.
SEMAPHORE Data Type
Use the SEMAPHORE data type to create semaphore variables, which are used in concurrent scripts to mutually exclude competing threads or control access to a resource.
SET Data Type
The generic name for any data type that is declared with the type...is set declaration.
SIZE Data Type
The dimensions of an object without regard to position.
STRING Data Type
Describes how to store character strings using quotation marks in strings.
WINDOW Data Type
Declare a variable of type WINDOW to store a window identifier and then reference the window using the variable name, instead of using the window identifier as specified in the window's declaration.
WINDOWDEFINEDHOW Data Type
Use WindowDefinedHow as optional parameter for the IsDefined method to see how a particular string definition has been defined.
WINDOWINTERACTIONSTATE Data Type
Contains values that specify the current state of the window for purposes of user or programmatic interaction.