Skip past navigation linksSecure Global Desktop Administration Guide > Applets > getIteratorHasMoreElements (webtop script and webtop tray applets)

getIteratorHasMoreElements (webtop script and webtop tray applets)

Syntax

Skip past command syntax or program codeString getIteratorHasMoreElements(String iteratorHandle)

Description

Returns "TRUE" if the iterator identified by the iterator handle contains more object names; otherwise, it returns "FALSE".

iteratorHandle is the handle to an iterator previously created with one of the getIterator methods.

This method can be used with either the webtop script applet or the webtop tray applet.

Examples

Skip past command syntax or program codewhile (applet.getIteratorHasMoreElements(iterator) == "TRUE") {

    current = applet.getNextIteratorElement(iterator);
}

Iterates through all elements, checking each time if any more elements remain.

Related topics