On Mon, May 17, 2004 at 02:00:08PM +1000, KNOTT, Brian wrote: > I having a brain dead day. I want to build an array of structures but I > can't seem to get the syntax correct. Basically I have an array and each > element has a structure that contains 4 elements e.g > > [1].name > [1].company > [1].phone > [1].fax > [2].name > [2].company > [2].phone > [2].fax > [3].name
<cfscript> newArray = ArrayNew(1); newarray[1] = StructNew(); newarray[1].name = 'a'; newarray[1].company = 'b'; newarray[1].phone = 'c'; newarray[1].fax = 'd'; </cfscript> Looping is left as exercise for the reader. Cheers Paul Haddon Technical Services Manager Formstar Print Technologies --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004
