Javascript Reference
Categories: Enumerator

javascript Enumerator Description

@July 13, 2008, 6:11 a.m.
Enumerator Firefox/Netscape/NN n/a IE 4(Win) ECMA n/a  
    

If an ActiveX control property or method returns a collection of values, the usual JavaScript approach to collections (treating them as arrays) does not work for such values. The Enumerator object gives JavaScript a way to reference items in such collections by controlling a pointer to the list of items. For additional details, visit http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/js56jsobjenumerator.asp.

 
Properties

None.

 
Methods
 
atEnd( ) item( ) moveFirst( ) moveNext( )
 
Creating an Enumerator
 
var myEnumObj = new Enumerator(externalCollection);

Powered by Linode.