-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

It doesn't look like you're handling the name of the structure
programatically so you could do this:

<!--- create a new array --->
<cfset history = arraynew(1)>

        <cfscript>
                // populate the first structure
                order = StructNew();
                order.id = 0001;
                order.date = "01/01/2001";
                // move the structure to the array
                history[1] = order;
                
                //populate the second structure
                order2 = structnew();
                order2.id = 0002;
                order2.date = "/01/02/2001";
                // move the structure to the array
                history[2] = order2;
</cfscript>

That works.  To handle the name of the structure programatically, do
soemthing like this:

<cfset history = arraynew(1)>

<cfloop from="1" to="2" index="i">
        <cfscript>
        // populate the structure
                order = StructNew();
                order.id = "#i#";
                order.date = "01/#i#/2001";
                // move the structure to the array
                history[i] = order;
        </cfscript>
</cfloop>

HTH's.

Aaron Johnson, MCSE, MCP+I
Allaire Certified ColdFusion Developer
MINDSEYE, Inc.
<phn>617.350.0339
<fax>617.350.8884
<icq>66172567
[EMAIL PROTECTED]
~~~~~~~~~~~~~ Paid Sponsorship ~~~~~~~~~~~~~
Get Your Own Dedicated Win2K Server!      Instant Activation for $99/month w/Free 
Setup from SoloServer      PIII600 / 128 MB RAM / 20 GB HD / 24/7/365 Tech Support     
 Visit SoloServer, https://secure.irides.com/clientsetup.cfm.

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to