<< Prev        Next >>

ID : 476

Label

A label indicates a sentence position within the procedure. A branch target position can be indicated by a label.

Preferably, supply a meaningful name to each label for program usability.

Place the label name at the line head according to the Naming convention, followed by ":" (colon).

Labels are primarily used for error processing.

Each label name must be unique within the procedure.

E.g.


Sub main()
	On Error Goto ErrorCheck
	Move P, P5
	・・・
	Exit Sub
ErrorCheck:             'Error processing
	PrintMsg "An error occurs"
	Resume Next
End Sub

ID : 476

<< Prev        Next >>