Can someone please tell me where I can find the resource about how
to loop inside <CFSCript> instead of <CFLOOP>?

My problem is:

I have use the combination of 
<CFScript>
    arrayYes = ArrayNew(1);
</CFScript>
<CFLOOP  from= 1 to = #varLength# Index="k">
  <CFSET arrayYes[k] = ( #someNum[k]# / #otherNum[k]# )* 100 )>
</CFLOOP>

// someNum and otherNum has been defined and assigned values in the same
pages
   before with template, but when I run it, it says: can not convert
number...

// when I look up CF book, it says, <CFSET can not do much
calculation...need
   to be careful....

Many Thanks.

Mei

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to