I am studying Visual Basic .NET and I have a question about about goto statement
I would like to jump function to function by click button.
For example , we have UI form and there is one button "stop" and there are two functions "first" and "second" .
I can be middle of running function "one" or "two" When user click UI_BT_SAVE_RS button , just skipped one or two function and go to the end.
I would like to know that skipping two function when the users are clicking UI_BT_SAVE_RS button
For example,
In UI form we have button event and two function
Private Sub UI_BT_SAVE_RS_Click(sender As Object, e As EventArgs) Handles UI_BT_SAVE_RS.Click
// if user click this button then go to skipped: in the one_two()
End Sub
public sub one_two()
one() // just function name
two() // just function name
skipped:
end sub
when user clicks UI_BT_SAVE_RS button, i would like to skipped one and two function and go to end which is "skipped"
is there anyway that skip and goto some part of code by button clicking event ?
thanks