Documentation/Enumerator
classdeprecated

Enumerator

jsdoc/objects/com.js:63
Enumerator(active_x_object)
Deprecated.

Deprecated: use for ... of loop instead.

Parameters

NameTypeDescription
active_x_objectActiveXObject

Any ActiveX collection object.

Example

let e = new Enumerator(active_x_object);
for (e.moveFirst(); !e.atEnd(); e.moveNext()) {
  console.log(e.item());
}
method

atEnd

jsdoc/objects/com.js:79
atEnd()

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

Returns

boolean
method

item

jsdoc/objects/com.js:86
item()

Returns the item at the current enumerator position.

Returns

*
method

moveFirst

jsdoc/objects/com.js:93
moveFirst()

Resets enumerator position to the first item.

method

moveNext

jsdoc/objects/com.js:100
moveNext()

Moves enumerator position to the next item.