Re: Trigger Compile Errors
Date: 1997/11/22
Message-ID: <34762133.5169CECF_at_mail.datanet.hu>#1/1
> declare
> which_timer VARCHAR2(50);
> begin
> which_timer := GET_APPLICATION_PROPERTY (TIMER_NAME);
> if which_timer = 'BLINK' then
> :control.message_switch := mod (:control.message_switch+1,1);
> if :control.message_switch = 1 then
> set_item_property ('CONTROL.MESSAGE_BUTTON', ICON_NAME,'icn01');
>
> elsif :control.message_switch = 2 then
> set_item_property ('CONTROL.MESSAGE_BUTTON', ICON_NAME,'icn02');
>
> elsif :control.message_switch = 3 then
> set_item_property ('CONTROL.MESSAGE_BUTTON', ICON_NAME,'icn03');
>
> elsif :control.message_switch = 4 then
> ... ...
> else
> if :control.message_switch = 16 then
> set_item_property ('CONTROL.MESSAGE_BUTTON', ICON_NAME,
> 'ems16');
> endif;
> end;
I am not a professional PL/SQL compiler, but: I see 3 if statesment to begin here, but only 1 of them is closed with end if.
Error 103 at line 2, column 4
Encountered the symbol ";" when expecting one of the following:
"if"
The error message above means, that the compiler needs an 'end if;' instead of 'end;'.
Hope it helps,
G
Hoppan Greg Gergely WWW : http://w3.datanet.hu/~alpha/ Managing Director Mail : alpha_at_mail.datanet.hu Alpha Consulting 1996 Limited Phone: +36-1-351-9020HUNGARY 1068 Budapest, Benczur u 14 Fax : +36-1-351-9020
Received on Sat Nov 22 1997 - 00:00:00 CET