From Xojo Documentation

Revision as of 22:56, 24 July 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.

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