Two routines are supplied which affect the behavior of loops within Data Explorer. Loops are typically initiated with the ForEachMember or ForEachN modules. From within a user-written module, you could terminate a loop by calling DXLoopDone.
void DXLoopDone()  | Terminates a loop. See DXLoopDone.  | 
int DXLoopFirst()  | Indicates whether it is the first time through a loop. See DXLoopFirst.  |