A statement label is a unique identifier that identifies a particular program line. It consists of a string of numeric or alphanumeric characters at the beginning of a source line. Source lines do not require statement labels. If the program is directed to a statement label with the GOTO, GOSUB or INPUTTRAP statements, however, the label must exist somewhere in the program.
A numeric statement label can be any constant number (decimals allowed). Numeric statement labels can end with a colon (:), but a colon is not mandatory. An alphanumeric statement label must begin with a letter and be followed by any combination of letters, numbers, periods, or dollar signs. An alphanumeric statement label must be followed by a colon, or it is not recognized as a statement label.
See Also