> It would be better to treat the session structure as an 
> associative array...
> 
> session[attributes.cartName] = StructNew();
> session[attributes.cartName].items = ArrayNew(1);  // Note 
> you missed the 1 in this...
> 
> session[attributes.cartName].items[1] = "blahblahblah";
> 
> that way you get away from that whole hacky way of setting 
> dynamic variables. You could also use setVariable - but I 
> think this way is cleaner personally.

Yes, I agree completely, and don't know why it didn't occur to me. Oh, well.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to