PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • 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)
// Browsing the 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