Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Splitting Strings in ASP

Status
Not open for further replies.

antonides

Programmer
Sep 17, 2003
2
AU
How do I Split Strings in ASP

e.g. I have a string

"Anton Ballus" and I want to take only the Ballus part
 
myStr="Anton Ballus"
pos=instr(1,myStr," ")
myStr=mid(myStr,Pos+1)

response.write myStr 'Should return Ballus
 
MyStr = "Anton Ballus"
MyStrArray = split(MyStr)


will give
MyStrArray(0) contains "Anton"
MyStrArray(1) contains "Ballus"



Chris.

Indifference will be the downfall of mankind, but who cares?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top