Not a bug - It's in the documentation, ColdFusion ignores empty list elements.
At 04:54 PM 2/16/2002 -0500, you wrote: ><cfset list ="1,1,1,This transaction has been approved.,,P,34234234> > ><cfscript> > // create structure with default values to hold results > product = StructNew(); > product.response_code = 3; > product.response_subcode = ''; > product.response_reason_code = ''; > product.response_reason_text = ''; > product.response_auth_code = ''; > product.response_avs_code = ''; > product.response_trans_id = ''; ></cfscript> > ><cfset product.response_code = Val(ListFirst(list))> > <cfset product.response_subcode = ListGetAt(list, '2')> > <cfset product.response_reason_code = ListGetAt(list, '3')> > <cfset product.response_reason_text = ListGetAt(list, '4')> > <cfset product.response_auth_code = ListGetAt(list, '5')> > <cfset product.response_avs_code = ListGetAt(list, '6')> > <cfset product.response_trans_id = ListGetAt(list, '7')> > > <cfoutput> > #product.response_trans_id# > </cfoutput> > >Interestingly enough the ,, is not counted as a space so my trans id should >by 6 according to my findings. Is this a bug or a misunderstanding on my >part? > >THanks, > >Neil > > ______________________________________________________________________ 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

