PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Example: Managing the integrity errors on an addition
HErrorIntegrity (Example)
Example: Managing the integrity errors on an addition
WINDEVWEBDEV - Server codeReports and QueriesWindows MobileJavaAjaxUser code (UMC)HFSQLHFSQL Client/ServerHyper File 5.5OLE DBNative Connectors (Native Accesses) This example is used to manage the integrity errors that may occur when a record is added into the CUSTOMER file. The automatic management of errors was disabled beforehand (HOnError).
// No automatic management of errors (duplicates, integrity, ...)
HOnError(CUSTOMER, "")
IF HAdd(CUSTOMER) = False THEN
IF HErrorDuplicates() = True THEN
Error("Duplicate error on unique key", HErrorInfo())
RETURN
END
IF HErrorIntegrity() = True THEN
Error(HErrorInfo())
RETURN
END
END
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment