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

Home > How to resume inner $order loop from given point?

Question
Arto Alatalo · Apr 12, 2018

How to resume inner $order loop from given point?

A function iterates global ^data(a,b,c) with $order using 3 nested for-loops. At certain point, for example with a=10, b=20, c=30, the function exits and later has to resume the iteration from the same point. What could be easiest way for it? My solution looks too ugly.

#ObjectScript #Caché

Source URL:https://community.intersystems.com/post/how-resume-inner-order-loop-given-point