Split function in Classic ASP tutorial!

This tutorial explains you how to explode a string in classic ASP. There is a default ASP function already given in Classic ASP is called Split()

See the below code, Its pretty much easier as PHP explode() function(If you are a PHP developer!).

In the below script, we are using ( , ) as a delimiter to split the words.


<%
Dim YourString
Dim SpiltString
YourString = "This is beautiful, Isn't It?"

SpiltString= Split(YourString, ",")

response.write("First Split: "&SpiltString(0)&"<br>")
response.write("Second Split: "&SpiltString(1)&"<br>")

%>

 

About the Author

agurchand

Software Engineer, Blogger etc., Visit my Youtube channel - <a href="http://www.youtube.com/agurchand">Click Here</a>

Leave a Reply

Your email address will not be published. Required fields are marked *