Examples for using the Iterator method
- Last Updated: August 23, 2021
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
The following code illustrates the use of a collection and iterator, in this case a tenant collection and the iterator used to loop through and allocated tenants:
|
The Iterator( ) method on IDataAdminCollection is overloaded with a parameter to allow
the returned iterator to be filtered, sorted, or both. The following code illustrates
the use of the iterator filter to achieve the same result as in the previous
example:
|
For more information on filtering and sorting entity collections with the
IDataAdminCollection iterator, see Filtering and sorting.
For more information, see: