Difference between revisions of "ObjectIterator.MoveNext"
From Xojo Documentation
m |
|||
Line 14: | Line 14: | ||
<rbcode> | <rbcode> | ||
− | + | Var o As Runtime.ObjectIterator = Runtime.IterateObjects | |
While o.MoveNext | While o.MoveNext | ||
ListBox1.AddRow(Introspection.GetType(o.Current).Name) | ListBox1.AddRow(Introspection.GetType(o.Current).Name) | ||
Wend | Wend | ||
</rbcode> | </rbcode> |
Latest revision as of 22:56, 24 July 2019
Method
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.