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 when saving a view in a data file
HViewToFile (Example)
Example: Processing the errors and the sub-errors when saving a view in a data file
WEBDEV - Código ServidorAjaxHFSQL ClassicHyper File 5.5 The following example is used to process the different errors and sub-errors that occur when importing a view into a data 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)
// Browse the sub-errors
    WHILE nError <> 0
    // 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