Another branching statement, and perhaps the most hated statement in programming, is the GoTo statement. However, we will need this to do Run-Time error trapping. The format is GoTo Label, where Label is a labeled line. Labeled lines are formed by typing the Label followed by a colon.
· GoTo Example:
When the code reaches the GoTo statement, program control transfers to the line labeled Line10.
.
No comments:
Post a Comment