PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

  • 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
WINDEVWEBDEV - Server codeAjaxHFSQLHyper 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
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment