Hi Michael, In pre CFMX you need to specifically create a structure with structNew()
AS far as I was aware you also needed to use structInsert, but as Sean Corfield pointed out earlier today that is not required. I do not have CF5 and you do, so please test ;-)) Taco Fleur http://www.tacofleur.com/index/blog/ 0421 851 786 Tell me and I will forget Show me and I will remember Teach me and I will learn > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Michael Kear > Sent: Friday, 9 January 2004 5:42 PM > To: CFAussie Mailing List > Subject: [cfaussie] Why doesnt this line work in CF5, but > works in CFMX? > > > > I'm transferring my app to the CF5 server, and a line which I > thought was innocuous and working fine, causes an error on the CF5. > > The following line is part of a process that parses a text > file and converts it to a struct before inserting into a database. > > This line: > [quote] > <cfset > session.assirt[#session.assirt.filename#][#tablecount#][#fieldname#] > = "#item#"> > [/quote] > > Should result in something like this being processed: > > <cfset session.assirt[afi][10][AnnPerf1y] = "4.71"> > > > In CFMX it does. But in CF5, I get the following error > message - is there additional processing I need to do for > CF5, or is there different syntax > with CF5? Do I have to explicitly create the struct > session.assirt in CF5 > whereas CFMX will create it automatically if > sessionmanagement is turned on? > > > [quote] > Error resolving parameter SESSION.ASSIRT > The session variable ASSIRT does not exist. > [/quote] > > > > Cheers > Mike Kear > Windsor, NSW, Australia > AFP Webworks > http://afpwebworks.com > > > > > > --- > 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 --- 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
