Hi,
I have an Error Label inside a for next loop, and when an error is trapped the error label is called but the for next loop is not exited and becomes an endless loop...
How can I exit the loop when the error is trapped?
I've tryed Exit and Return with no success!!
I have an Error Label inside a for next loop, and when an error is trapped the error label is called but the for next loop is not exited and becomes an endless loop...
B4X:
Sub MySub
errorlabel (error)
for x = 0 to 49
D Something
next x
error:
msgbox("file was not created!!",,cMsgBoxOK,cMsgBoxExclamation)
End Sub
How can I exit the loop when the error is trapped?
I've tryed Exit and Return with no success!!