I've got a compiled application that can be programmed to output ColdFusion
code along with its regular output, writing CF templates that later run
under CF 5.0. However if any of its regular output contains pound signs,
CF throws an error when the template is executed. Both these examples will
fail:
<CFSCRIPT>
Test = 'SKU # 1716-SY-367';
</CFSCRIPT>
Or
<CFSET Test = 'SKU # 1716-SY-367'>
What I would LIKE to do is use Replace or REReplace or somehow escape the
damn pound signs out of the strings more or less like so:
<CFSET Test = #REplace("SKU # 1716-SY-367", "#Chr(35)#", "", "ALL")#> --
but it doesn't work.
(#Chr(35)# in the REplace function will replace say, DOUBLE pound signs in
the string, so at least that works)
It is not possible to use the original compiled application to either
double up the pound signs or eliminate them, I have to work with the output
it gives me and it isn't very sophisticated. I can use it to output any CF
code I want but I have to deal with the strings it gives me. Your help
would be greatly appreciated.
Regards,
Karl S.
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.8.13/47 - Release Date: 7/12/05
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211748
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54