ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / Managing databases / HFSQL / WLanguage variables
  • Value of H.ErrIgnore
  • Example
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
H.ErrIgnore (Variable)
In french: H.ErrIgnore
Specifies the mode for processing the errors:
  • the errors are processed by WINDEV,
  • the errors are processed by the program.
Warning For programming errors (called "Serious Errors"), the H.ErrIgnore variable has no effect. These errors must not be ignored because the execution of the program would come to nothing. These errors are presented in HFSQL errors.
Remarks

Value of H.ErrIgnore

If the H.ErrIgnore variable is set to True:
  • the errors (that can be ignored) must be processed in the program, they do not stop the execution of the program. If an error occurs, the requested function is not run.
  • the global H.Error variable returns the error number to the program in order for the error to be processed.
If the H.ErrIgnore variable is set to False (default value):
  • All the runtime errors automatically display the error number, the associated error message and the value of the invalid parameters.
  • The execution of the current program is stopped, pressing a keyboard key is used to exit from the program.

Example

The following example is used to check the existence of a data file. If the data file does not exist, it is created ; if it exists, the program continues to run.
// In order for the execution not to be stopped if an error occurs
H.ErrIgnore = True
HOpen(CUSTOMER)
H.ErrIgnore = False
IF H.Error = 3 THEN HCreation(CUSTOMER)
...
Component: wd300hf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 12/06/2024

Send a report | Local help