Class Reference
Cache for UNIX 2018.1.3
InterSystems: The power behind what matters   
Documentation  Search
Private  Storage  

class %Iterator.Object extends %Iterator.Array

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
1


Summary

Methods
%GetNext


Methods

• method %GetNext(Output key, Output value) as %Integer
getNext() advances the iterator and returns true if the iterator is positioned on a valid element, false if it is beyond the last element. The key for the element is returned in the first output argument and the value in the second. To call this method, pass the key and value arguments by reference to receive their return values. To iterate over an array, use the following pattern: while iterator.getNext(.key,.value) { // key and value now contain the key for the element and value contains the value. }


Copyright © 1997-2020, InterSystems Corporation