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]
- Looping in CFSCRIPT Andrew Dixon
- Re: Looping in CFSCRIPT joe velez
- Re: Looping in CFSCRIPT Andrew Dixon
- Re: Looping in CFSCRIPT Greg Stewart
- Re: Looping in CFSCRIPT joe velez
- Re: Looping in CFSCRIPT Andrew Dixon
- Re: Looping in CFSCRIPT Greg Stewart
- Re: Looping in CFSCRIPT Doug James
- Re: Looping in CFSCRIPT joe velez
- RE: Looping in CFSCRIPT Pascal Peters