SubObjectIterator (FB)ΒΆ

FUNCTION_BLOCK SubObjectIterator IMPLEMENTS ISubObjectIterator

Helps to iterate through the subobjects of an object. For using this iterator property SubObjectIterator.Object must be set to the corresponding object. The iterator then points in front of the first subobject of this object (==> property SubObjectIterator.Current is 0). By calling SubObjectIterator.MoveNext the iterator can be moved to the next subobject. If SubObjectIterator.MoveNext returns TRUE the current subobject can be retrieved by property SubObjectIterator.Current. The iterator can be set back in front of the first element by calling SubObjectIterator.Reset.

Example

See ObjectIterator.

Properties:

Methods:

Structure: