GOTO Target Not Found

From Xojo Documentation

Error message

You used a label in a GOTO statement that is not used in the method. Therefore, the jump could not be executed.


Examples

The example from the GOTO keyword is modified so that there is no code that is identified by the label used in the GOTO statement.

If checkbox1.value then
GOTO myCode
End If

//Return used to keep RB from executing the labelled statement anyway
Return
myLabel: //does not match label in GOTO
MessageBox("Unstructured programming is bad")


See Also

GOTO statement.