Just out of curiousity,
why would you do this, or when would you.

J

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 09, 2002 2:02 PM
To: CF-Talk
Subject: RE: Pausing using CF


<cfscript>
/**
 * Pauses the processing for CF for a specified amount of time
 * 
 * @param seconds  number of seconds you would like to pause CF for
 * @author Tony Petruzzi ([EMAIL PROTECTED]
 * @version 1, April, 09 2002
 */
        function PauseCF(seconds){
                var currenttime = now();
                while(DateDiff("s", currenttime, now()) LTE seconds){
                        continue;
                }
        }
</cfscript>


Here is a function a wrote to do this. All you have to do to use it is
assign the function to a variable.

<cfset temp = PauseCF(10)>

Have fun!

Anthony Petruzzi
Webmaster
954-321-4703
http://www.sheriff.org


-----Original Message-----
From: Michael Tangorre [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 7:53 PM
To: CF-Talk
Subject: Pausing using CF


Hello.

Can anyone think of a way that I can achieve a pause for like 30 seconds to
a minute between iterations in a loop?

would another loop inside work that did nothing or is there a better way?

Mike





______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to