Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Playing with Datawindow error messages?

Status
Not open for further replies.

golyg

Programmer
Jul 22, 2002
319
US
I'm using pb6.0
On the dwcontrol.update() method, when the datawindow displays an error message, say for a non-unique entry, is there anyway to display one of mine messageboxes rather than the pb generated message but to still use the dwcontrol.update() method?
I just think that error message is boring looking.

thanks,
 
Yes, it is quite simple. There is a DBError event in the datawindow control. Just display your error message in this event and set return code to 1 so that it suppresses the system message


MessageBox("Your Error","Your error text")
return 1



RT
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top