Your Ad Here

Posted By

krisdb on 03/09/07


Tagged

ASP


Versions (?)

TrimLength


 / Published in: ASP
 

  1. 'accepts: string,lengh to trim
  2. 'returns: trims character to specified length
  3. function TrimLength(sStr,iLength)
  4. if (len(sStr) > iLength) then
  5. TrimLength = left(sStr,iLength) & "..."
  6. else
  7. TrimLength = sStr
  8. end if
  9. end function

Report this snippet  

You need to login to post a comment.