ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Errors / WLanguage errors
  • Reason
  • Correction
  • Example
  • Using the CONTINUE keyword in a procedure
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Error 35: 'Continue' is available in the loops only
Reason
The CONTINUE keyword was used in statement other than a loop.
Correction
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.
Example

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…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help