ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Managing databases / HFSQL / WLanguage variables
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
ErrorOccurred (Variable)
In french: ErreurDétectée
ErrorOccurred is a preset variable of WLanguage indicating the result of the last WLanguage function used.
ErrorOccurred corresponds to:
  • False if the last WLanguage function used was successful.
  • True if the last WLanguage function used triggered a non-fatal error.
Remark: The details of the error that occurred is returned by ErrorInfo or HErrorInfo.
Example
nFile is int
nFile = fOpen("C:\MyDirectories\File.txt", foReadWrite)
IF nFile <> -1 AND ErrorOccurred = False THEN
...
ELSE
Error(ErrorInfo())
END
Remarks
  • To manage fatal errors, use WHEN EXCEPTION.
  • Fatal errors that are not processed cause the application to stop immediately. An error message is automatically displayed.
    • WINDEVWINDEV Mobile This message can be configured when creating the executable.
    • WEBDEV - Server code Error messages can be customized when the site is deployed on the Web server. For more details, see Customizing the errors.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help