Home » Developer & Programmer » Forms » How to show system Clock in your form.
How to show system Clock in your form. [message #83107] Thu, 07 August 2003 05:47 Go to next message
Numan Khalid
Messages: 10
Registered: August 2003
Junior Member
well i want to show system clock in my form which is the method to do this job.
Thanx,
Re: How to show system Clock in your form. [message #83111 is a reply to message #83107] Thu, 07 August 2003 19:12 Go to previous message
Shailender Mehta
Messages: 49
Registered: June 2003
Member
To show Digital Clock on your form
-----------------------------------
Follow the steps mentioned below :-

1) Create a display item which will be used
to display the system time in HH24:MI:SS
format.

2) In When-New-Form-Instance trigger code the
following,

Declare
timer_id Timer;
one_sec NUMBER(5) := 60;
Begin
timer_id := CREATE_TIMER('digital_clock',
one_sec, REPEAT);
End;

3) Create a When-Timer-Expired trigger (Form Level)

:Block.display_item := To_Char(Sysdate,
HH24:MI:SS');

When you run the form then the display item will
automatically refresh and display the current
time.
Previous Topic: Please help: which trigger to choose?
Next Topic: disable field
Goto Forum:
  


Current Time: Thu Mar 28 13:54:14 CDT 2024