Since Epicor does not have traditional For and Do loops, I’ve been using Count to mimic For Loops such as:
For A = B To C
IF X = Y THEN
Do Stuff here
ELSE
Exit For
END IF
Next A
In Epicor I’m just using BREAK
For A = B To C
IF X = Y THEN
Do Stuff here
ELSE
BREAK
END IF
Next A
It works good enough, but if I have a nested For (or Count in Epicor) the Break only breaks out of the nested Count, not the entire structure. Has anyone run across a similar situation? Similar to nested Do While/For Loops. In VBA it’s easy to control what/where to exit/break out. Epicor, not so much. Also no support for GoTo:.
TIA.