1.7 Labels

A label is a name for a location in the source code to which can be jumped to from another location with a goto statement. A Label is a standard identifier or a digit sequence.

_________________________________________________________________________________________________________
Label

--label---digit- sequence--------------------------------------------
           identifier
___________________________________________________________________

Remark The -Sg or -Mtp switches must be specified before labels can be used. By default, Free Pascal doesn’t support label and goto statements. The {$GOTO ON} directive can also be used to allow use of labels and the goto statement.

The following are examples of valid labels:

Label  
  123,  
  abc;