Quantcast
Channel: Classic ASP
Viewing all articles
Browse latest Browse all 488

Replace In String

$
0
0

I have a series of displays that may, or may not, contain specific characters within a string that I need to replace.

For example:

Jones - 05002

Smith - 09001

Unger - 10101

Should be 

Jones - B002

Smith - C001

Unger - D101

IF string contains "- 09" then replace "- 09" with "- C" elseif string contains "- 05" then replace "- 05" with "- B" etc.


Viewing all articles
Browse latest Browse all 488

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>