Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Limiting characters from recordset

Community Beginner ,
Jul 24, 2006 Jul 24, 2006

Copy link to clipboard

Copied

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
TOPICS
Server side applications

Views

170
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 26, 2006 Jul 26, 2006

Copy link to clipboard

Copied

LATEST
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
>


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines