RE: How to trim text (read inside)

2002-02-21 Thread Jim Curran
: Thursday, February 21, 2002 2:12 PM To: CF-Talk Subject: RE: How to trim text (read inside) The only problem with this is that it will cut it off in mid-word. So, you can just loop from 1000 down to 1 and check for the end of a word/parag raph, and when it is found, take that index to do the Left().

RE: How to trim text (read inside)

2002-02-21 Thread BEN MORRIS
The only problem with this is that it will cut it off in mid-word. So, you can just loop from 1000 down to 1 and check for the end of a word/parag raph, and when it is found, take that index to do the Left(). >>> "Jim Curran" <[EMAIL PROTECTED]> 02/21/02 02:08PM >>> For the blurb area try this.

RE: How to trim text (read inside)

2002-02-21 Thread Jim Curran
For the blurb area try this... First choose a character count for the words (fairly easy method, and since you specify 100 - 200 words, I'll assume it's flexible) Lets say 1000 chars #left(body,find(" ",body,1000))# What this does is find the first space after char position 1000 and trims at t

Re: How to trim text (read inside)

2002-02-21 Thread Webmaster
Nevermind, I answered that myself. Used the #Left(info,250)#... "Webmaster" <[EMAIL PROTECTED]> wrote in message 3c6d8994$[EMAIL PROTECTED]">news:3c6d8994$[EMAIL PROTECTED]... > I have a database table that contains news headlines. I was wondering how to > be able to take like the first 100 -