ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Managing databases / HFSQL / HFSQL functions
  • 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
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help