Home » Developer & Programmer » Forms » why I should press two click in the button in the Alert to execute the order ? (oracle database 10g , forms 6i , XP SP2)
icon4.gif  why I should press two click in the button in the Alert to execute the order ? [message #322586] Sat, 24 May 2008 11:28 Go to next message
Hany Freedom
Messages: 256
Registered: May 2007
Location: Egypt
Senior Member

why I should press two click in the button in the Alert to execute the order ?

when I press button exit or message .... like in this screen shot :-

http://img135.imageshack.us/img135/1771/dpclickga9.png

the code doesn't execute but by another click in it !!!!

why the first button (Keys) execute by one click , and the others with two click ?

I wrote that code in show_Alert button that appear the alert 'B' in previous screen.

if show_alert('B')=alert_button1 then
	show_keys;
elsif
	show_alert('B')=alert_button2 then
	exit_form;
elsif
	show_alert('B')=alert_button3 then
	message('it''s message test for alert_button3');
	message('it''s message test for alert_button3');
end if;


I attach the fmb file ..... download it and have a look.

waiting for any solve or suggest .......
  • Attachment: les17.fmb
    (Size: 60.00KB, Downloaded 973 times)
Re: why I should press two click in the button in the Alert to execute the order ? [message #322618 is a reply to message #322586] Sun, 25 May 2008 03:38 Go to previous message
Hany Freedom
Messages: 256
Registered: May 2007
Location: Egypt
Senior Member

the right code is :-

declare
	nn number;
begin
	nn:=show_alert('B');
	if nn=alert_button1 then
		show_keys;
	elsif
		nn=alert_button2 then
		exit_form;
	elsif
		nn=alert_button3 then
		message('it''s message test for alert_button3');
	  message('it''s message test for alert_button3');
	end if;
end;


by this way we wrote the show_alert('B') one time only , hence the code will execute by one click only Very Happy

have a look for the attachment file ( modified fmb file )
  • Attachment: les17.fmb
    (Size: 60.00KB, Downloaded 930 times)

[Updated on: Sun, 25 May 2008 03:39]

Report message to a moderator

Previous Topic: BackUp Exp/Imp
Next Topic: why this tree didn't work correctly ?
Goto Forum:
  


Current Time: Fri Sep 27 12:21:27 CDT 2024