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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Return characters from String

Status
Not open for further replies.

Iliemoo

Programmer
Sep 25, 2002
64
CA
Various other languages can return a character from a string variable when an index number is supplied, much like an array. e.g. str = "programming", str(3) would return "o". How is this done in ASP? Thank you for reading such a trivial question.
 
in the above case

Mid(str,3,1)

3 is the start letter and 1 is the number of characters to return from that point Saturday 12.00
im6.gif
im2.gif
im2.gif
20.00
im5.gif
im4.gif
im7.gif
3.00am
im8.gif
Sunday [img http
 
And also
Code:
str = "programming"

strThreeLettersOver = Left(str,3) works to.

Response.Write(strThreeLettersOver)
starts on the left side, goes over 3..
www.vzio.com
ASP WEB DEVELOPMENT



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top