AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Administrar bases de datos / HFSQL / Funciones HFSQL
  • Example: Processing the errors and the sub-errors (view)
Example: Processing the errors and the sub-errors (view)
The following example is used to process the different errors and sub-errors that occur when importing a view into a file.
MyView is Data Source
...
// Update the records of the view in the initial file
IF HViewToFile(MyView) = False THEN
// An error occurred while updating the file
Info("Error during the HViewToFile operation:" + HErrorInfo())
// Display all the records that caused a problem
nError is int = HError(hSubErrFirst)
// Loop through sub-errors
WHILE nError <> hNoError
// Display the error
Info(HErrorInfo() + CR + "number of the record in the view:" + ...
HErrorInfo(hErrRecNum))
// Next sub-error
nError = HError(hSubErrNext)
END
END
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/05/2022

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