Home » Developer & Programmer » Forms » If ELSE (Oracle Forms 11g)
If ELSE [message #663548] Wed, 07 June 2017 15:25 Go to next message
sourabh2511
Messages: 3
Registered: May 2017
Junior Member
Hi,

Can any one tell me what is wrong with the following piece of code :-

"ELSIF upper(v_cdo_reprint) != 'T' and P_btn = 'BTN_REQ_TITLE' then
v_alert:=show_this_alert('NOTIFY_USER','Invalid Reprint Request',
'The title page has not changed for requesting reprint.');

ELSE "

show_this_alert is a program unit. So please ignore it. Is there any thing wrong syntactically. If no then what should this do
Re: If ELSE [message #663549 is a reply to message #663548] Wed, 07 June 2017 15:52 Go to previous messageGo to next message
Littlefoot
Messages: 21690
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
As far as I can tell, there's nothing wrong here.

However, it appears that you DO have problems (otherwise, you wouldn't post a question). It is difficult to debug code you can't see, so - consider posting the whole code, specifying error you get.
Re: If ELSE [message #663566 is a reply to message #663548] Thu, 08 June 2017 08:31 Go to previous message
joy_division
Messages: 4961
Registered: February 2005
Location: East Coast USA
Senior Member
sourabh2511 wrote on Wed, 07 June 2017 16:25
Hi,

Can any one tell me what is wrong with the following piece of code :-

"ELSIF upper(v_cdo_reprint) != 'T' and P_btn = 'BTN_REQ_TITLE' then
v_alert:=show_this_alert('NOTIFY_USER','Invalid Reprint Request',
'The title page has not changed for requesting reprint.');

ELSE "

show_this_alert is a program unit. So please ignore it. Is there any thing wrong syntactically. If no then what should this do
There is no IF or END IF and your have double-quotes around the entire thing.

[Updated on: Thu, 08 June 2017 08:32]

Report message to a moderator

Previous Topic: form-40202 when focus on new field
Next Topic: display values not showing in list items
Goto Forum:
  


Current Time: Sun Nov 28 12:37:35 CST 2021