6. Working with Arrays, Table Fields, and Collections : Collections
 
Share this page                  
Collections
A collection is an object that contains a group of related objects. For example, the Excel Worksheets collection object in the following sample code contains Worksheet objects. Each object within a collection is called an element of that collection. Because collections are objects, they have properties and methods, just as single objects do.
Declared collections can use the OpenROAD array syntax for indexing. Undeclared collections must use the standard item method for indexing. The following sections provide examples of how this is done. For the collections syntax, see the Language Reference Guide online help.