Secure Global Desktop Administration Guide > Applets > getIteratorHasMoreElements (webtop script and webtop tray applets)

getIteratorHasMoreElements (webtop script and webtop tray applets)

Syntax

String 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

while (applet.getIteratorHasMoreElements(iterator) == "TRUE") {

    current = applet.getNextIteratorElement(iterator);
}

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

Related topics