Skip to main content
Awakekats
Participant
July 24, 2006
Question

Limiting characters from recordset

  • July 24, 2006
  • 1 reply
  • 188 views
I thought I use to have an extension that did this - hoping someone could point me in the right direction to find it again or the ASP VBScript code to make it work.

I am wanting to limit the number of characters that a record displays. Like 100 characters of the of article field and then the link to go to the full record somewhere else.

Thanks, Katherine
This topic has been closed for replies.

1 reply

Inspiring
July 26, 2006
You can use the Left command to cut the information like this which will
return the first 100 characters

<%
Dim Intro
Intro = Left(recordset.fields.item("Fieldname").value,100)
%>

Note though that this is a very blunt tool as it will chop words once the
100 characters is reached.


--
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver

Valleybiz Internet Design
www.valleybiz.net

"Awakekats" <webforumsuser@macromedia.com> wrote in message
news:ea2vfq$bnh$1@forums.macromedia.com...
>I thought I use to have an extension that did this - hoping someone could
>point
> me in the right direction to find it again or the ASP VBScript code to
> make it
> work.
>
> I am wanting to limit the number of characters that a record displays.
> Like
> 100 characters of the of article field and then the link to go to the full
> record somewhere else.
>
> Thanks, Katherine
>