Hi Les,

I use a new Java thread and sleep it:

<cfset thread = CreateObject("java", "java.lang.Thread")>
<cfloop>
  <cfset thread.sleep(20000)>
</cfloop>

Hope that helps,

Joe

On 10/4/05, Les Mizzell <[EMAIL PROTECTED]> wrote:
> Is there any way to force CFLOOP into an endless loop, using cfsleep to
> control the timing of advancement?
>
> Something like:
>
> <cfloop index="i" from="1" to="20">
>    1. Do something
>    2. wait 2 seconds then next step
>    3. if "i" = 20 start over
> </cfloop>
>
> Yea, I know .... it's crazy. Javascript is a better way to go, but I
> just wondered it this was possible...
>
> -----------
> Les Mizzell
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220080
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to