CFLib.org has a UDF (ListFix) that will replace empty elements in a list with null characters (of your chosing). Look for ListFix.
======================================================================= Raymond Camden, Principal Spectra Compliance Engineer for Macromedia Email : [EMAIL PROTECTED] Yahoo IM : morpheus "My ally is the Force, and a powerful ally it is." - Yoda > -----Original Message----- > From: Claudia Hoag [mailto:[EMAIL PROTECTED]] > Sent: Saturday, February 16, 2002 6:52 PM > To: CF-Talk > Subject: Re: ListGetAt error?! > > > 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')> > > ______________________________________________________________________ Why Share? Dedicated Win 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=coldfusionc 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

