HomeAboutWeb DesignGraphicDesignPresentationContact

ASP Training 101

Using Split, Delimiter : Webitcorp

Using Replace, Delimiter

Enter a sentence with a delimiter (example: cat-dog, cat+dog) Enter delimiter (Example: + , - , ,)

The Code

<% Dim strSentence, arrWords, strOnneWord %>

<form method="post" action="using-replace.asp">
Enter a sentence with a delimiter (example: cat-dog, cat+dog) <input type"text" name="strSentence" />
Enter delimiter (Example: + , - , ,)<input type"text" name="del" />
<input type="submit" value="submit" />
</form>

<p>
<%

strSentence = Request.Form("strSentence")
del = Request.Form("del")
strSentence = Trim(strSentence)

arrWords = Replace(strSentence, del, " ", 1)

 

Response.Write(arrWords)

%>

 

Home | About | Web Design | Graphic Design | Presentations | Contact | Site Map | del.icio.us+del.icio.us

| Saint Lucie County, Florida | Rockland County, NY | Burgan County, NJ |


Port Saint Lucie Web Development , Graphic Design , Multimedia Presentations , and much more

Valid XHTML 1.0 Transitional

Copyright ©2007

Onenuttyweb.com