PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • Reason
  • Correction
  • Example
  • Procedure that uses the RETURN and RESULT keywords
  • Possible correction
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 803: Return and Result cannot be used in the same process
Reason
The current process uses the RESULT and RETURN keywords. These two keywords cannot be used in the same process.
Correction
Standardize the processes performed in your loop or in your procedure.
  • The procedure or the loop returns a result and it always uses the RESULT keyword.
  • The procedure or the loop returns no result and it always uses the RETURN keyword.
Example

Procedure that uses the RETURN and RESULT keywords

Code triggering the error
FUNCTION Find(File, Key, Value)
HReadSeek(File, Key, Value)
IF HFound()=True THEN
        RESULT True
ELSE
        RESULT False
END
RETURN

Possible correction

In this example, the RETURN keyword is useless and it must be deleted.
Minimum required version
  • Version 0
This page is also available for…
Comments
Click [Add] to post a comment