|
|
|
|
- Reason
- Correction
- Example
- Using the CONTINUE keyword in a procedure
Error 35: 'Continue' is available in the loops only
Not available
The CONTINUE keyword was used in statement other than a loop. Use the CONTINUE keyword in a loop statement or delete this keyword. Remark: In a loop statement, the CONTINUE keyword is used to immediately end the current iteration. The code found after the CONTINUE keyword will not be run. The next iteration is automatically run. Using the CONTINUE keyword in a procedure Code triggering the error
PROCEDURE Compare(Number1, Number2) IF Number1 > Number2 THEN RETURN ELSE CONTINUE END
Possible correction Deleting the CONTINUE keyword.
PROCEDURE Compare(Number1, Number2) IF Number1 > Number2 THEN RETURN ELSE Info(Number2 + "is greater than " + Number1) END
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|