Well, to use an array, you need to initialise it:
<cfset a = arrayNew(1)>
It's only one dimensional because the second "dimension" will
be a struct
(see below)
Stick that line above your loop. Give the array a better
name.
Then you have to POPULATE the array. This is an easy
modification of your
existing code to set the individual variables:
<cfset a[loopCount] = structNew()> <!--- each
element is a struct --->
<cfset
a[loopCount].del=round((query3.delT/query4.delgoal)*100)>
<cfset
a[loopCount].inv=round((query3.invT/query4.invgoal)*100)>
<cfset
a[loopCount].book=round((query3.bookT/query4.bookgoal)*100)>
The reason why the second "dimension" is a struct rather than
an array is
that arrays are intrinsically "ordered", and there ought to
be some sense
of a numeric relationship between the elements. This is not
the case here.
As for reading... I'm not sure what to suggest if the docs
don't help you:
http://livedocs.adobe.com/coldfusion/7/htmldocs/00000951.htm
(there are
several sequential pages).
There's this:
http://coldfusion.sys-con.com/read/279900.htm
which I found on Google my searching for "cfmx array
tutorial".
--
Adam