Replace String > Easy
Replace a string with something else. This is commented so even beginners can understand and see how to use it in your exisiting code.
Original Author: snowboardr
Code
<%
'lets replace .net with .com
Dim mystring, newstring
mystring = "www.mysite.net" 'Show what mystring is
newstring = Replace(mystring, ".net" , ".com")
'to print out your new string do like so:
Response.Write newstring
'Outputs:
'www.mysite.com
%>
Loading Comments ...
Comments
No comments have been added for this post.
You must be logged in to make a comment.