This one I've really been pulling my hair out on.

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.

I've tried this to no avail, having substituted a number of expressions
in the " " field.  I'm not doing something right, or should I be
using something else entirely to achieve what I need.

<CFSET testlist = "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">

<CFSET testlist = ListChangeDelims(testlist, ",", "&ensp;")>

Thanks,
Mark

______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
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