|
Re: How to show system Clock in your form. [message #83111 is a reply to message #83107] |
Thu, 07 August 2003 19:12  |
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.
|
|
|