Again, there may be easier ways to do this, but if no one else chimes 
in, try something like this:

<cfset valArray = ArrayNew(2)>

<cfloop from="1" to="5" step="1" index="i">
        <cfset valArray[#i#][1] = "monthlyPremium#i#">
        <cfset valArray[#i#][2] = #Evaluate('ANNUALWRITTENPREMIUM' & i)#/4.3>
</cfloop>

Then, to output the values:

<cfloop from="1" to="5" step="1" index="i">
        <cfoutput>#valArray[i][1]# = #valArray[i][2]#<br></cfoutput>
</cfloop>

(not really sure what you're planning on doing with the values once you 
get them set, so I just output them to the screen)


Torrent Girl wrote:
> I need to do something similar to this:
> 
> <cfset monthlyPremium#i# = #Evaluate('ANNUALWRITTENPREMIUM' & i)#/4.3>
> 
> 
> But that is what is not working for me.
> 
> 
> 
> 
> 
> 
>> If all you are trying to do is divide it why not use 
>>
>> <cfset newNum = ANNUALWRITTENPREMIUM / 4.3>
>> <cfoutput>#newNum#</cfoutput>
>>
>> On Fri, 09 Jun 2006 09:09:37 -0400, Torrent Girl wrote
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:15:1864
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to