label is used to define a code that will be systematically run at the end of the process execution. This code will be run even if the exit from the process is performed by 返回 statement
or by 返回 statement
(except for an exception process triggered by ExceptionThrow).
This feature is available in Windows Store apps mode.
// Opens the files
// Returns -3 if an opening error occurred
// Reads the first line of each file
// If the two lines are empty, the end of the two files has been reached
// Returns 0
// If end of file 1, the file 1 is shorter
// returns -1
// If end of file 2, the file 2 is shorter
// returns -2
// If the lines are different, returns the number of the different line
// Goes to the next line
// Closes the files
// Main code
// Statements run in all cases
// at the end of the process execution
The value to return is stored and the code following the "END:" label is run. The value is returned at the end of execution of the code following the "END:" statement
Note: The END: label is also run after the automatic management of errors if this one is enabled (by "CASE ERROR:" and "CASE EXCEPTION:").
The code following the "END:" label is not run after a call to 重新输入
or to 关闭
can be replaced by the call to 屏幕第一个所在
followed by RETURN or RESULT.