Top  >  Lycia reference  >  Querix 4GL  >  Statements  >  LABEL

LABEL

 

LABEL statement serves as a marker for the GOTO statement, and marks the statement to be executed after 4GL passes control to it from the corresponding GOTO statement.

 

 

Element

Description

Label-name

The name of a label

 

The LABEL statement indicates the place to which the program control will be passed after the corresponding GOTO statement is executed. The GOTO and the LABEL statement must be in the same program block. For more information see the "GOTO" statement section.

 

There are some restrictions applied to the LABEL statement:

 

The label-name must be followed by the column symbol (:) unlike the GOTO statement where the column symbol is optional.

 

WHENEVER ERROR GOTO first_error

...

LABEL first_error:

ERROR "Incorrect format"