用Forms编写的数字时钟

王朝other·作者佚名  2008-05-19
宽屏版  字体: |||超大  

运行效果如图:

点击查看大图

form 级的when-new-forms-instance 代码为:

declare

timer_id timer;

begin

timer_id:= create_timer('T1',1000,REPEAT);

-- T1 应大写,是时钟的名称,1000表示1秒

:current_time := sysdate;

end;

form 级的 when-timer-eXPired 代码为:

declare

TimerName varchar2(20);

begin

TimerName :=get_application_PRoperty(TIMER_NAME);

if TimerName='T1' then

:current_time := sysdate;

end if;

end;

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
© 2005- 王朝网络 版权所有