Re: [WebDNA] How to stop cutting a word

This WebDNA talk-list message is from

2008


It keeps the original formatting.
numero = 100198
interpreted = N
texte = Thanks Frank, I will give it a go :) On 03/07/2008, at 11:16 PM, Frank Nordberg wrote: > Stuart Tremain wrote: > >> It is meant to cut off a block of text between char 220 to 260 but >> only at a space, ie not cutting a word in half > > This is the code I use for a similar purpose: > > [GETCHARS start=1&end=200&trim=both][REMOVEHTML][Body][/REMOVEHTML][/ > GETCHARS] > > It seems to work fine but looking at it now, I can't understand why. > According to the WebDNA documentation the "trim=both" parameter only > removes spaces that may have ended up at the beginning or end of the > string but it apparently it's much more useful than that, removing > incomplete words from the ends of the string as well. > > > Frank Nordberg > http://www.musicaviva.com > http://stores.ebay.com/Nordbergs-Music-Store?refid=store > > Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] How to stop cutting a word ("William DeVaul" 2008)
  2. Re: [WebDNA] How to stop cutting a word (Matthew Bohne 2008)
  3. Re: [WebDNA] How to stop cutting a word (Frank Nordberg 2008)
  4. Re: [WebDNA] How to stop cutting a word (Frank Nordberg 2008)
  5. Re: [WebDNA] How to stop cutting a word (Charles Kline 2008)
  6. Re: [WebDNA] How to stop cutting a word (Stuart Tremain 2008)
  7. Re: [WebDNA] How to stop cutting a word (Frank Nordberg 2008)
  8. [WebDNA] How to stop cutting a word (Stuart Tremain 2008)
Thanks Frank, I will give it a go :) On 03/07/2008, at 11:16 PM, Frank Nordberg wrote: > Stuart Tremain wrote: > >> It is meant to cut off a block of text between char 220 to 260 but >> only at a space, ie not cutting a word in half > > This is the code I use for a similar purpose: > > [GETCHARS start=1&end=200&trim=both][removehtml][Body][/REMOVEHTML][/ > GETCHARS] > > It seems to work fine but looking at it now, I can't understand why. > According to the WebDNA documentation the "trim=both" parameter only > removes spaces that may have ended up at the beginning or end of the > string but it apparently it's much more useful than that, removing > incomplete words from the ends of the string as well. > > > Frank Nordberg > http://www.musicaviva.com > http://stores.ebay.com/Nordbergs-Music-Store?refid=store > > Stuart Tremain

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Re:quit command on NT (1997) WebDNA dying or ... ? (2005) setting username and password using a form. (2000) mem leak: webcat (2001) Problems appending to database (1997) (1997) Public Beta for WebCatalog 4.0 is Available (2000) Copyright ? (1997) WebCatalog Technical Reference (1997) Grep to convert characters to html entities (2006) I'm new be kind (1997) Multiple cart additions (1997) Sku numbers (1997) Looking for WebCatalog Programmer in Silicon Valley (1998) Change Subtotal (2000) Cookies not setting on IE (2002) [Shell] help with Tarring files (2002) $Replace with [founditems] (1997) WebCat2 Append problem (B14Macacgi) (1997) Multi-processor Mac info ... (1997)