HomeAboutWeb DesignGraphicDesignPresentationContact

ASP Training 101

Using Split, Delimiter : Webitcorp

Using Split, Delimiter

Enter delimiter (Example: + , - , ,)

This is a split test + Each, word, that, has a dalimater betwwen (-) it will be sent down to the next line

The Code

<% Dim strSentence, arrWords, strOnneWord %>

<form method="post" action="using-split.asp">
Enter delimiter (Example: + , - , ,)<input type"text" name="del" />
<input type="submit" value="submit" />
</form>

<%

strSentence = " This is a split test + Each, word, that, has a dalimater betwwen (-) it will be sent down to the next line"
del = Request.Form("del")
strSentence = Trim(strSentence)

arrWords = Split(strSentence, del, -1, 1)

For Each strOneWord in arrWords

Response.Write(strOneWord)
Response.Write("<br />")
Next
%>

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