PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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.
Note: 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
Minimum required version
  • Version 0
This page is also available for…
Comments
Click [Add] to post a comment