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?
Looks like there's a
pvaoref
property that points to the original instance as you can see below:And it seems to work:
I get this error on access:
And the property is indeed marked as private.
sighs
I should have expected that much. Which version are you using?
2019.3
In IRIS this property is hidden in contrast to Caché:
By the way this also doesn't work in IRIS anymore: Is there a way to get [ Internal, Private ] property?
Social networks
InterSystems resources
To leave a comment or answer to post please log in
Please log in
To leave a post please log in