Hey Guys:

I am having problems creating an array of structures and serializing it into a wddx 
package for client storage in a db.  My code looks like this:

<cfscript>
    history=ArrayNew(1);
    order=StuctNew();
    StructInsert(order, "id", "0001");
    StructInsert(order, "date", "01/01/2001");
    history[1]=order;
    StructClear(order);
    StuctInsert(order, "id", "0002");
    StrictInsert(order, "date", "01/02/2001");
    history[2]=order;
</cfscript>

I then serialize and store the data.  However what happends is that the "history" 
array has a length of two, but both are set to the second structures values.  Any 
ideas??

Thanks in advance,


Greg


~~~~~~~~~~~~~ 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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to