Hi,
I need to add a list of currency data types outputted from a table, from a
field called #amount#. The currency format is UK Pound. I'm not too
familiar with the locale functions with CF, but think this is what I need
for a basic addition of currency values. Could someone confirm this, and if
possible supply an example of how I'd go about it?
I tried the following embarassingly wrong code...
<cfparam name="total" default="">
<cfoutput query="get_inv" datasource="#DSNa#">
<cfset total = total + #amount#>
</cfoutput>
Any advice much appreciated.
Will
--
http://www.localbounty.com - free local and national advertising
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists