Previous section   Next section

Arrays

Work with arrays.

Background Information

In Caché, the word array can refer to either of the following items:
  • A Caché multidimensional array. Each of the programming languages in Caché (apart from Caché SQL) provides commands for working directly with Caché multidimensional arrays. Using Caché Globals describes these arrays, which have two general forms: persistent and in-memory. Persistent multidimensional arrays are known as globals.
    See Caché ObjectScript Reference, Caché Basic Reference, and Caché MultiValue Basic Reference. This reference book does not go into details for the languages.
  • An instance of any of the Caché array classes.
    The Caché class library provides classes that represent a simple form of array — key and value. (In contrast, Caché multidimensional arrays do not have a fixed structure.)
    This reference topic lists these classes.

Available Tools

Defines the interface for an array property whose elements are literal values. That is, each array item has a key and a literal value.
For an introduction, see “Working with Collections” in Using Caché Objects.
Availability: All namespaces.
Defines the interface for an array property whose elements are objects. That is, each array item has a key and an object value.
For an introduction, see “Working with Collections” in Using Caché Objects.
Availability: All namespaces.
Defines a stand-alone object that represents an array of literal values. Each array item has a key and a literal value.
Availability: All namespaces.
Defines a stand-alone object that represents an array of objects. Each array item has a key and an object value.
Availability: All namespaces.
A version of the %ArrayOfObjects collection class that stores class names in OIDs. These classes can be used stand alone to store a collection.
For details, see the class reference for %ArrayOfObjectsWithClassName.
Availability: All namespaces.
Previous section   Next section