PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
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
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.
Note: 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 the fatal errors, use WHEN EXCEPTION.
  • The fatal errors that are not processed provoke the immediate stop of the application. An error message is automatically displayed.
    • WINDEVWINDEV Mobile This message can be configured when creating the executable.
    • WEBDEV - Server code The error messages can be customized when the site is deployed on the Web server. See Customizing the errors for more details.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment