ObjectIterator.MoveNext

From Xojo Documentation

Method

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.

Example

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

Var o As Runtime.ObjectIterator = Runtime.IterateObjects
While o.MoveNext
ListBox1.AddRow(Introspection.GetType(o.Current).Name)
Wend