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
HTH
Simon
Julian Haynes wrote in message ...
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