ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Errors / WLanguage errors
  • 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/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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
RETURN True
ELSE
RESULT False
END
RETURN

Possible correction

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

Last update: 05/26/2022

Send a report | Local help