当前位置:首页 > 网络编程 > 数据库 > Oracle > 用Forms编写的数字时钟

用Forms编写的数字时钟

点击次数:33 次 发布日期:2008-11-22 16:57:36 作者:源代码网
源代码网推荐

运行效果如图:
  用Forms编写的数字时钟

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;

源代码网供稿.
网友评论 (0)
会员中心
网络编程
本站推荐
网络编程之精华