AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Administrar bases de datos / HFSQL / Variables WLanguage
  • Value of H.ErrIgnore
  • Example
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
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.
Caution: The H.ErrIgnore variable has no effect for the programming errors (called "major errors"). 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: wd290hf.dll
Versión mínima requerida
  • Versión 9
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 07/09/2023

Señalar un error o enviar una sugerencia | Ayuda local