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