From Xojo Documentation

Revision as of 20:18, 31 July 2017 by PLefebvre (talk | contribs)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

ObjectIterator.MoveNext() As Boolean

Supported for all project types and targets.

Moves the iterator to the next object. MoveNext must be called to start the iteration. You can think of the iterator as initially pointing to prior to the first item in the list.


The following example iterates over the objects using a While loop and writes each object's name to a ListBox.

Dim o As Runtime.ObjectIterator = Runtime.IterateObjects
While o.MoveNext