Enumerator(active_x_object)

new Enumerator(active_x_object)

Deprecated: use `for ... of` loop instead.
Parameters:
Name Type Description
active_x_object ActiveXObject Any ActiveX collection object.
Deprecated:
  • Yes
Example
let e = new Enumerator(active_x_object);
for (e.moveFirst(); !e.atEnd(); e.moveNext()) {
  console.log(e.item());
}

Methods

atEnd() → {boolean}

Returns a boolean value indicating if the enumerator has reached the end of the collection.
Returns:
boolean

item() → {*}

Returns the item at the current enumerator position.
Returns:
*

moveFirst()

Resets enumerator position to the first item.

moveNext()

Moves enumerator position to the next item.