[thelist] What is the ColdFusion equivalent to eval()?

Joshua Olson joshua at alphashop.net
Tue Apr 24 00:50:41 CDT 2001


Just an afterthought...

You may consider changing this:

<cfloop index="i" from="1" to="#ArrayLen("my_arr")#">
  <cfset order_#id# = ListToArray("my_arr[#i#]","-")>
</cfloop>

to

<cfset order = ArrayNew(1)>
<cfloop index="i" from="1" to="#ArrayLen(my_arr)#">
  <cfset order[i] = ListToArray(my_arr[i],"-")>
</cfloop>

That way it's already an array then you can get away without even using the
pesky SetVariable function.

(Which reminds me, my last reply was not 100% correct--I forgot to change
the <cfloop> tag to <cfloop index="i" from="1" to="#ArrayLen(my_arr)#">.
The my_arr should not have quotes around it, sorry)

-joshua





More information about the thelist mailing list