ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / Managing databases / HFSQL / HFSQL functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Used to check whether a duplicate error occurred.
// Manage a duplicate error
IF HModify(Customer) = False THEN
	IF HErrorDuplicates() = True THEN 
		sItemName is string
		sItemName = HErrorInfo(hErrItem)
		Error("Duplicate: this record cannot be modified", "Field associated with error: " + sNomRub, ...
				"Item value: " + {"Customer." + sNomRub})
	END
END
Syntax
<Result> = HErrorDuplicates()
<Result>: Boolean
  • True if a duplicate error occurs,
  • False otherwise (no error).
Remarks
  • The management of duplicates is enabled by default. To enable or disable the management of duplicates, use HSetDuplicates.
  • This function replaces HDuplicates, which is kept for compatibility with WINDEV 5.5.
Business / UI classification: Business Logic
Component: wd300hf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 12/06/2024

Send a report | Local help