Hi..I am quite new to Progress development. I am trying to find a match to a condition within a for loop, and if that condition is met, then I don't want the for-each loop to go to the next iteration/to continue, but end there completely. What I have got is below:
any help would be really great.....thanks....
what about if i want to come out of 2 loops...1 main loop and 1 nested loop...like this as below:
for each wo-order where woo-project = tt-screen.joq-project no-lock:
for each ap-item where api-voucher = woo-order no-lock:
/* show error msg */
You use block-labels fcor that purpose:
You might also want to check the NEXT statement. That does not leave the whole loop. It just leaves the current iteration and starts with the next one.