Board index » delphi » Error Message

Error Message

Could any one help me :
I've write this code :

if UpperCase(E.Message)='KEY VIOLATION.'
then E.Message := 'Duplicate Data.'

I've put this statement on the OnPostError event on the table
component'.
But the error message from delphi still come up. No 'Duplicate Data'
message come up.

What's wrong with this statement.

Thank you for responding.

 

Re:Error Message


Quote
>Could any one help me :
>I've write this code :

>if UpperCase(E.Message)='KEY VIOLATION.'
>then E.Message := 'Duplicate Data.'

>I've put this statement on the OnPostError event on the table
>component'.

It works for me when I try it in Delphi 3 with a Paradox table.  What are you
 using

--
Brian Bushay (TeamB)
Bbus...@DataGuidance.com

Other Threads