Unfortunately, the built in array functions only work on single dimension arrays. You may be able to find a custom tag that does this from the Allaire Tag gallery though.
If you can't find a custom tag, my only suggestion would be to loop through your two dimensional array and copy the values to a single dimension array and then use the array average function on it.
Thanx GJ. Actually, it's funny -- I can act on any _row_ (e.g. ArrayAvg(MyArray[1]) or ArrayAvg(MyArray[2]) works) but could see no way to address the columns. I was thinking I could build the array 'sideways' or 'pivot' (rebuild) the existing one and use the 'row' references above on my former 'columns'. Ever hear of such trickanery? Thanx again for the feedback.
I've never heard of anyone doing that so that's cool to know you can make them work on the rows. I would just rebuild the arrays and use your rows the way you described. Are you using CF 4.5? I'm wondering if this is something that was changed in 4.5.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.