August 1999
Intermediate to advanced
1488 pages
72h 53m
English
var variable = new Enumerator(collection)
The Enumerator object provides access to items in a collection by allowing iteration through a collection. Accessing items in a collection requires moving the Enumerator object to the first element or the next element using special methods. Unlike arrays, enumerators can not access a specific position. To create and Enumerator object use the Enumerator() constructor. This constructor requires that a collection be passed in as an argument. The methods associated with the Enumerator object are listed in Table 9.7.
| Method | Description |
|---|---|
| atEnd() | Determines if Enumerator is at the end of the collection |
| item() | Returns ... |
Read now
Unlock full access