Delay in loop [message #211056] |
Mon, 25 December 2006 23:19 |
myclassic
Messages: 136 Registered: December 2006 Location: Pakistan
|
Senior Member |
|
|
i want to display numbers from 1..100 and there must be delay in displaying each number. i want to add delay in loop. help required in oracle ..form..
|
|
|
|
Re: Delay in loop [message #211306 is a reply to message #211184] |
Wed, 27 December 2006 21:56 |
myclassic
Messages: 136 Registered: December 2006 Location: Pakistan
|
Senior Member |
|
|
thanks dear u replied my question. yes this is a way but it looks some what improper. but suggest some proper way to insert delay in loop.
|
|
|
|
|
|
Re: Delay in loop [message #212119 is a reply to message #211184] |
Wed, 03 January 2007 18:36 |
William Robertson
Messages: 1643 Registered: August 2003 Location: London, UK
|
Senior Member |
|
|
wency wrote on Wed, 27 December 2006 01:33 | If you want manual delay, then insert this:
For x IN 1..1000
Loop
NULL;
End Loop;
|
Won't that just burn up all the CPU available? Isn't that kind of a bad idea?
|
|
|
|
|
Re: Delay in loop [message #212352 is a reply to message #211056] |
Thu, 04 January 2007 20:23 |
|
Nice Post!
Thre's a lot on our system. I'm not aware for that 'dbms profiler', we only observe speed.
>>I don't really know whats the reason behind these code.
>>Maybe because we are using the older version, Oracle 5
>>(I'm not sure if dbms_lock is supported)
>>or most probably bacause the requirement is miliseconds delay.
Thanks for that.
Cheers,
Wency
[Updated on: Thu, 04 January 2007 20:52] Report message to a moderator
|
|
|
Re: Delay in loop [message #212710 is a reply to message #211334] |
Sun, 07 January 2007 22:06 |
myclassic
Messages: 136 Registered: December 2006 Location: Pakistan
|
Senior Member |
|
|
thank u wency ... this is really a nice answer so far as sql/plsql is concerned but how will it work in forms.... create a form having a display field and a push button and then execute this ... i shall be thankful to you for this.
|
|
|
Re: Delay in loop [message #212711 is a reply to message #211334] |
Sun, 07 January 2007 22:10 |
myclassic
Messages: 136 Registered: December 2006 Location: Pakistan
|
Senior Member |
|
|
thank u littlefoot ... this is really a nice answer so far as sql/plsql is concerned but how will it work in forms.... create a form having a display field and a push button and then execute this ... i shall be thankful to you for this
|
|
|
|
Re: Delay in loop [message #212756 is a reply to message #212721] |
Mon, 08 January 2007 03:41 |
William Robertson
Messages: 1643 Registered: August 2003 Location: London, UK
|
Senior Member |
|
|
myclassic wrote on Mon, 08 January 2007 00:04 | Warning: Procedure created with compilation errors.
|
It would save us a lot of guessing if you told us what compilation errors you were getting.
If the procedure is to be a Forms program unit, it will not be efficient to call a server-side package every time it wants to pause 1 second. You would be better looking at a Forms timer as I think someone may have mentioned (I'm afraid I don't have Forms right now and haven't used it for a while).
|
|
|
|
Re: Delay in loop [message #212946 is a reply to message #212788] |
Mon, 08 January 2007 22:02 |
myclassic
Messages: 136 Registered: December 2006 Location: Pakistan
|
Senior Member |
|
|
Dear saadatahmad
Thanks Sir, I wanted to do this via loop but u have help me in an other way.... thank u really. take care.
|
|
|