method moveNext

bool moveNext();

Argumente

Zurückgegebener Wert

This method sets the current property to the next element in the collection. The method returns true if more elements were avilable in the collection, and the property was successfully set. When an iteration is complete, calls to this method return false until the enumerator is reset.

This method must be called when a new enumerator is created or when the enumerator is reset, so that the current property is set to the first element in the collection. If this is not done, the property will not be set to a valid element, and returns an error when accessed.

var arrayObj = shell.serviceManager.basics.array;            
var enumerator = arrayObj.getEnumerator();
while (enumerator.moveNext())
{
    var name = enumerator.current;
}