Forum Moderators: open

Message Too Old, No Replies

Only show part of a memo field (classic ASP)

         

KRMwebdesign

2:39 pm on May 4, 2010 (gmt 0)

10+ Year Member



I'm building a news website and I want to only show a certain amount of characters in teh memo field/ part of the news story. Then users can click on 'read more' to view the entire thing on the news.asp?newsid= page

Does anyone know of a way I can do this?

Staffa

2:48 pm on May 4, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you tried :

Left(rs("fieldname"),nn)

where nn = number of characters of rs("fieldname") to show, starting from the left

KRMwebdesign

3:17 pm on May 4, 2010 (gmt 0)

10+ Year Member



Cool, I will try that.

KRMwebdesign

4:12 pm on May 4, 2010 (gmt 0)

10+ Year Member



Hi Staffa. That worked great. Thanks very much!

Staffa

10:09 pm on May 4, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You're welcome :)