Thanks...

----- Original Message -----
From: joe velez <[EMAIL PROTECTED]>
Date: Thu, 09 Sep 2004 06:03:47 -0400
Subject: Re: Looping in CFSCRIPT
To: CF-Talk <[EMAIL PROTECTED]>

i havent actually played w/ cfscript too much, but in reading about it
briefly i believe its something like this ....

for a comma del. list

<cfscript>
var=0; /* not sure if var = 0 if you dont set it first, you can
probably exclude this, but set it to be safe */
while(VAR lte listlen(yourlist))
{
   var++; // this should work or ...
   var=var+1; //
   // do stuff
}
</cfscript>

for a query

<cfscript>
var=0;
while(VAR lte query.recordcoount) // might need #query.recordcount#
{
   var++; // this should work or ...
   var=var+1; //
   // do stuff
}
</cfscript>________________________________
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to