clock [message #77869] |
Wed, 05 December 2001 19:06  |
ghazala
Messages: 6 Registered: December 2001
|
Junior Member |
|
|
how can i make a running clock on my runtime form.
----------------------------------------------------------------------
|
|
|
Re: clock [message #77872 is a reply to message #77869] |
Thu, 06 December 2001 00:36   |
Muhammed Shahzad
Messages: 10 Registered: November 2001
|
Junior Member |
|
|
Add a display item in ur form and create a time ,set ur timer expire on every millisecond.
write code into when-timer-expired trigger.
begin
select to_char(sysdate,'hh:mi:ss')
into :column_name from dual;
synchronise;
end;
----------------------------------------------------------------------
|
|
|
Re: clock [message #77880 is a reply to message #77869] |
Fri, 07 December 2001 01:09   |
Muhammed Shahzad
Messages: 10 Registered: November 2001
|
Junior Member |
|
|
sorry for the previous command ,its was an mistake.
The process is this , first u have to create a timer with the command 'create_timer'
i have no form builder right now so please see it in form builder help, copy it from there and create in the 'when_new_form_instance ' trigger ,and the line where the timer is created write this:
variable := create_time('timername',1,repeat);
then in when_timer_expired trigger write the previous given command for solve this problem.
if u dont how to use timer just tell me without hasitate to my mail, i m now often visit this site.
Thanks,
Shahzad.
----------------------------------------------------------------------
|
|
|
Re: clock "use this code" [message #313467 is a reply to message #77869] |
Sat, 12 April 2008 13:15   |
owais_baba
Messages: 289 Registered: March 2008 Location: MUSCAT
|
Senior Member |
|
|
hi ghazala
use this code
"when-new form-instance"
DECLARE
CurrTime TIMER;
OneSec CONSTANT NUMBER := 1000;
BEGIN
CurrTime := CREATE_TIMER('CURRTIME',OneSec,REPEAT);
END;
"when-timer_expired"
DECLARE
ExpTimer VARCHAR2(40) := Get_Application_Property(TIMER_NAME);
vTime VARCHAR2(30):= :SYSTEM.CURRENT_DATETIME;
BEGIN
IF ExpTimer = 'CURRTIME' THEN
:BLOCK7.VTIME := SUBSTR(vTime, instr(vTime,' ')+1);
--synchronize;
END IF;
END
then place oen text item on your canvas with name of "vtime"
format mask would be "char"
thanks "dont feel hesitate to ask frequently questions"
owais
owaisuzair2007@yahoo.com
|
|
|
Re: clock [message #313657 is a reply to message #77869] |
Mon, 14 April 2008 01:13  |
 |
djmartin
Messages: 10181 Registered: March 2005 Location: Surges Bay TAS Australia
|
Senior Member Account Moderator |
|
|
Search this forum for 'java clock'.
David
|
|
|