Welcome! Log In Create A New Profile


Disabling automated popup hduplicate error

Posted by Suser 
Disabling automated popup hduplicate error
October 20, 2019 08:27PM
how do i disable the annoying hduplicate popup of (wdtest)?
id like to prg what happens when duplicate is found so i need the security mechanism silenced.
How can i disable it?
Re: Disabling automated popup hduplicate error
October 22, 2019 12:01PM
Hi Suser,

there is the hOnError statement, see help.
There you can define a procedure which is called if an specific error occurs, and can write your own procedure ....


Re: Disabling automated popup hduplicate error
October 22, 2019 01:05PM
Hi Suser,

In the initialization of you Project add the code:

HOnError("*", hErrDuplicates + hErrIntegrity, ErrorOnDataBase)

Then, define the procedure ErrorOnDataBase like this:

PROCEDURE ErrorOnDataBase()

SWITCH HError(hErrCurrent)
// Duplicate Record
CASE 70010
ErrorBuild("Duplicate Error on File: %1, Record: %2, Field: %3", HErrorInfo(hErrFile), HErrorInfo(hErrRecNum), HErrorInfo(hErrItem), "The operation abandoned.")
// File Integrity
CASE 70015
Error("Integrity Error", HErrorInfo(hErrFullDetails), "The operation abandoned.")
RESULT opCancel

Hope to help


Vassilis Boutsikas

Edited 1 time(s). Last edit at 10/22/2019 01:06PM by Vassilis.

Your Email:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.