我在界面上成功显示时间:2003-10-28 13:25:36
现在想让它动态显示,也就是要显示时间在一秒一秒的增加!
请高手帮忙!

解决方案 »

  1.   

    将显示代码放在 Timer 的OnTimer 事件中呀
      

  2.   

    添加TIMER组件,设置interval属性为1000,在TIMER事件中添加显示时间语句
      

  3.   

    delphi现在最常用的数据库访问组件是什么
      

  4.   

    1.添加TIMER组件,设置interval属性为1000,
    2.在TIMER事件中添加显示时间语句:
     ...
      begin
    ...
    label1.caption:=datetimetostr(now);
    label1.refresh;  
      end;
    ...
      

  5.   

    procedure TForm1.Timer1Timer(Sender: TObject);
    begin
    label1.Caption:=datetostr(now())+'   '+timetostr(now());
    end;
      

  6.   

    在表单上添加个时间控件,设置属性interval 为1000以下都可以。
    在ontimer事件中加代码,显示时间的代码应该知道吧!不知道的话请自己去查一下,学会自己找。
      

  7.   

    在timer控件的ontimer事件里写入代码就行了;