Forums

ASP

This topic is locked

Limit Output of Text Characters

Posted 02 Oct 2002 02:23:30
1
has voted
02 Oct 2002 02:23:30 Ben Chambless posted:
Hello,

I am designing a product listing page. I want to show the first couple of lines of each products description. How do I limit the the number of text characters output? Thanks.

Replies

Replied 02 Oct 2002 12:40:09
Replied 02 Oct 2002 21:22:07
02 Oct 2002 21:22:07 Dave Thomas replied:
A simple way to do it is like :

<%= (rsYourRecordset.field.item("DBField".value)

changed to:

<%= Left(rsYourRecordset.field.item("DBField".value, 200)%>...

will show 200 characters with 3 trailing dots.

Regards,
Dave

UD4 || Flash || Access ||Web Hosting
Replied 02 Oct 2002 23:45:50
02 Oct 2002 23:45:50 Ben Chambless replied:
Thats exactly what I needed. Thanks for the help!!

Reply to this topic