Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

"Item does not pass validation test" message

2,469 views
Skip to first unread message

Julian Haynes

unread,
Nov 2, 1998, 3:00:00 AM11/2/98
to
Dear All

If in the itemchanged event I have trapped an error and have informed the
user (using my own standard error message). I may then want to return 1 but
I do not want PowerBuilder to then display the meesage "Item x does not pass
validation test" - How can I stop this?

Rgds

Julian Haynes
Hays DX
UK

Simon Caldwell

unread,
Nov 2, 1998, 3:00:00 AM11/2/98
to
Instead of using MessageBox() to display your own message, do
Modify("colname.ValidationMsg='my message'")
instead

HTH

Simon

Julian Haynes wrote in message ...

Regan Sizer

unread,
Nov 2, 1998, 3:00:00 AM11/2/98
to
Hi,

The ItemChanged event will accept or reject the value that has just changed and
does not control the display of the error message box. If you reject the value
in the ItemChanged event (using return 1), the ItemError event is fired. This is
where you need to add code to prevent the default message from displaying.

The only problem is that if you return a 1 in ItemError, ALL error message boxes
are suppressed. If you want only some of the messages to be suppressed, create
an instance variable that you set in the ItemChanged event which you can then
use in the ItemError event.

HTH

0 new messages