statement is used to run a code identified by a given label.
Important: The label and the GOTO statement must necessarily be defined in the same process.
Res = fOpen(FileName, foWrite)
IF Res = -1 THEN GOTO ERROPEN
Res = fWrite(Res, "Process OK")
IF Res = -1 THEN GOTO ERRWRITE
Info("The file " + FileName + " cannot be opened. Check its existence.")
Info("Unable to write into " + FileName)
GOTO <Label name>
Runs the code identified by the label.
Name of label whose code must be run. This name must be followed by ":". This label and the GOTO statement must be found in the same process.
Code that must be run when GOTO calls the label.
Once the code of the label has been run, the program runs the code lines that directly follow the label.
- Several labels with the same name cannot be used in the same process (or procedure).
- A warning is displayed during the compilation of the project if a label is used by no GOTO statement.