Hi,
cfscript (ColdFusion 8) can I do the following entirety in script?
cfloop index=i list=#listToUpdate# DELIMITERS=,
value = #i#
/cfloop
Thanks
~|
Want to reach the ColdFusion community with something they want? Let
for(i=1;i lte listlen(listToUpdate,,);i++){
#listgetat(listToUpdate,i,,)#
}
Hi,
cfscript (ColdFusion 8) can I do the following entirety in script?
cfloop index=i list=#listToUpdate# DELIMITERS=,
value = #i#
/cfloop
Thanks
for(i=1;i lte listlen(listToUpdate,,);i++){
#listgetat(listToUpdate,i,,)#
}
sorry forgot WriteOutput(listgetat(listToUpdate,i,,))
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House
This isn't a list loop, it's an index loop into a list. There's is a
marked performance difference if you list is of any size, because you
have to do tokenization of the list at least twice per loop when you
use an index loop. I did some tests a few years ago and even a
10-item list is about
barneyb thats interesting thanks
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
5 matches
Mail list logo