Nice Chris, thanks, saves a lot of time !

-----Original Message-----
From: Peterson, Chris [mailto:[EMAIL PROTECTED]
Sent: 25 July 2006 19:34
To: CF-Talk
Subject: Cool feature I didn't know about


Most of you probably know this, but I thought I would share because I
will use this all the time.

How often do you need to output a total line at the bottom of a report?
You probably do one of 2 things:  1) Increment a variable while
outputting your query, or b) perform a query of queries.

I found this trolling online and needed to share, lets say you have a
query called 'getData' and a column named 'rev' and you needed a total.
Just do this:   #arraySum(getData['rev'])#  You can use any array
functions (avg, max, min) against a query column referenced like this.
This seems a lot easier to read to me too!

Chris Peterson



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:247828
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to