Help... [message #82404] |
Mon, 26 May 2003 00:35 |
Mubeen.
Messages: 1 Registered: May 2003
|
Junior Member |
|
|
hi,
Here is the scenario.
I have created an alert in form (login)and I have also created a menu item(file menu)in which there is submenu
(exit),when i am calling the alert in menu code of submenu(exit)though i am pressing the default buttons'yes' or 'no' it is exiting the form ,which should not happen when i am pressing the no button.
here is the code i have written in pl/sql editor of submenu (exit).
declare
x1 number;
begin
x1 :=show_alert('ex_alert');
end;
please help me out.
thanx in advance.
Mubeen.
|
|
|
|
Re: Help... [message #82408 is a reply to message #82404] |
Mon, 26 May 2003 02:06 |
ash
Messages: 43 Registered: February 2001
|
Member |
|
|
bro, please try this:
/*
-- 88 is numeric value of OK Button
-- 89 is numeric value of Cancel Button
*/
declare
x1 number;
begin
x1 := show_alert('ex_alert');
if x1 = 88 then
exit_form;
elsif x1 = 89 then
message('Exit form cancelled.User changed his mind.');
end if;
end;
|
|
|