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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can i get rid of messages in runtime

Status
Not open for further replies.

LimonaM

Programmer
Joined
Oct 27, 2004
Messages
50
Location
SI
I'm anoyed of one message in runtime. What can i do so the message wouldn't appear? I use on-message trigger:

DECLARE
errnum NUMBER := ERROR_CODE;
BEGIN
IF errnum = 40401 THEN
:GLOBAL.chk := 'y';
END IF;
END;

but it doesn't help in this case! Is there some other solution?
 
Where are you trying to do this ? In pl/sql code ? Oracle forms ?

In the meantime, try something like :

DECLARE
errnum NUMBER := ERROR_CODE;
BEGIN
IF errnum = 40401 THEN
raise;
END IF;
exception when others
if errnum = 40401 then null;
else raise;
end if;
END;

 
You can set the :system.message_level := '20' before the operation that is causing the message, then restore it after the operation is over.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top