Published on InterSystems Developer Community (https://community.intersystems.com)

Home > Getting dynamic object from iterator

Question
Eduard Lebedyuk · Jan 14, 2020

Getting dynamic object from iterator

Is there a way to get dynamic object from iterator?

set arr=[1,2,3]
set iter=arr.%GetIterator()

I pass iterator several frames down and I'd rather avoid passing both the array and iterator, but for debugging I need to access original object in a situation where only iterator is available.

Is there a way to do it?

#InterSystems IRIS

Source URL:https://community.intersystems.com/post/getting-dynamic-object-iterator