Trigger Compile Errors
Date: 1997/11/21
Message-ID: <3475cc84.17151692_at_news.onr.com>#1/1
I have been getting several error messages when trying to compile a
'WHEN_TIMER_EXPIRED' Trigger in Forms 4.5.8.0.17 (WinNT).
The first two errors that I am getting are driving me crazy!!!
Error 103 at line 2, column 4
Encountered the symbol ";" when expecting one of the following:
"if"
Resuming parsing at line 55, column 4.
Error 103 at line 2, column 4
Encountered the symbol "" when expecting one of the following:
"begin","declare","end" ... ...
The cursor for both of these errors is before the 'c' in declare. Help!
Here is the text of the trigger. I skipped some of the repeating code.
declare
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
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
if :control.message_switch = 16 then
set_item_property ('CONTROL.MESSAGE_BUTTON', ICON_NAME,
'ems16');
end;
Received on Fri Nov 21 1997 - 00:00:00 CET