• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Enumerator

JScript3.0+Syntax

var variable = new Enumerator(collection)

Description

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.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint