In reply to "1. What's wrong with just doing this?"
I might have oversimplyfied the example.
What I am trying to do is:
1. I have a flat text string (strSentence)
2. I want to replace certain parts of the string
I wrote some ASP code that automatically generated the ASP code I
wanted. For example, if I wanted to replace every 'Yes' and 'No' in
'strSentence' then it would generate
replace(replace(strSentence, "Yes", "<b>Yes</b>"), "No", "<i>No</i>))
I then want to display the result of this code ('<b>Yes</b>'), not the
code itself. And strSentence is dynamic and I want to be able to add
'replacements' through the DB, just writing down the code is not an
option.
Maybe I am approaching the problem wrongly and is there a much easier
way of doing this.
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!