August 1999
Intermediate to advanced
1488 pages
72h 53m
English
enumeratorobj.moveNext()
The moveNext() method of the Enumerator object moves the enumerator to the next element in the collection. If the collection is empty, undefined is returned.
The moveNext() method is used in Listing 9.45 to move the enumerator to the next drive in the collection.
<html> <H1>Drive Letters and drive types:</H1> <script language="JScript"> <!-- Hide //Create enumerator object var fileSysObj = new ActiveXObject("Scripting.FileSystemObject"); var en = new Enumerator(fileSysObj.Drives); //Display drive letter and type for each drive. for (;!en.atEnd();en.moveNext()) { document.write("Drive ",en.item().DriveLetter); ... |
Read now
Unlock full access