04-14-2016 09:36 AM
Hello,
I have a For loop, that allows me to process multiple group from different files at once, that has a "If..Then" check at the beginning of the loop to make sure each individual group can actually be processed. If a group fails the check, I simply want to be able to skip to the next iteration of the For loop right there.
I know in VBA I would use "Continue For", how would I do this in DIAdem?
If x <> 0 Then x = ChV(x,"Group/Channel") Else Call ErrorHandler("Can't find x.") Continue For End If
Thanks.
Solved! Go to Solution.
04-14-2016 12:03 PM
There is no continue.
I would move the code to a sub and use exit sub.
dim i : For i=1 to 10 DoWork i Next Sub DoWork(i) If 2 = i Then Exit Sub End If ' ... end sub
04-14-2016 12:06 PM
Ah, ok.
I can do that. Thanks.