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

What's the function i have to use t

Status
Not open for further replies.

rbauerle

Programmer
Oct 16, 2001
48
BR
What's the function i have to use to write just the first 50 characters of a string?

Thanx very much.
 
We have a str called myStr
Code:
'to be safe
If len(myStr) > 50 Then
   Response.Write left(myStr,50) & "..."
Else
   Response.Write myStr
End If
If it's longer than 50, print 50 characters and a ...
Otherwise print the thing.

-Tarwn ------------ My Little Dictionary ---------
Reverse Engineering - The expensive solution to not paying for proper documentation
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top