The problem is that the string as I've shown in the original post only
show up as one item, I can't seem to get it to recognize that there are
actually 8 items in the list.  I thought that commas would solve the
problem, but they haven't worked either.  I've tried List first, where I
would want the ssl_result=0 to appear by itself, but no luck.

Thanks,
Mark


-----Original Message-----
From: Dave Watts [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, July 14, 2002 4:31 PM
To: CF-Talk
Subject: RE: Creating a list with comma delimits rather than spaces


> A CC processing routine returns via CFHTTP.Filecontent the
> following string:
> 
> ssl_result=0 ssl_result_message=APPROVED ssl_txn_id=0123456789 
> ssl_approval_code=023456 ssl_cvv2_response=P ssl_avs_response=Y 
> ssl_transaction_type=SALE ssl_card_number=4000000000000000
> 
> I want to convert this string so that the space prior to each
> "ssl" becomes a comma, instead of a space.  That will allow me 
> to use the GetListAt function and then parse out individual set 
> commands.

If your actual data doesn't contain any spaces, you could simply specify
the space as your delimiter. With all of the CFML list functions, you
can specify whatever delimiter you want.

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

______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
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