Forum Moderators: open
Thanks for reading this, I am stuck on something that may seem very simple to many of you, but I am new to ASP
Basically just need to take a sentence as a string variable from a text box and break it up into an array of strings of just the single words...
Eg: User enters "My name is John"
And I need to end up with an array "A" which has the values
A(0) = "My"
A(1) = "name"
A(2) = "is"
A(3) = "John"
Hopefully someone out there knows what I mean and has a moment to respond.. It would be hugely appreciated.
Jai
strSentence = request.form("textboxvalue")
A = split(strSentence, " ")
A(0) will contain "My"
A(1) will contain "name"
etc.