Re: [WebDNA] How to stop cutting a word

This WebDNA talk-list message is from

2008


It keeps the original formatting.
numero = 100195
interpreted = N
texte = 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)
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 Frank Nordberg

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:

Cleaning up all the shopping carts (2000) WebDNA Solutions ... (1997) Dreamweaver UltraDev (2000) Virtual hosting and webcatNT (1997) Sorting Numbers (1997) Viewing old carts (was FEW QUESTIONS) (1997) Include remote? (1998) Using [Include] Context (1999) Gathering the values of matching fields in a database. (1998) problems with 2 tags shakur (1997) [WebDNA] multi hyperlinks in text paragraphs (2014) The Guru Speaks-Is That Really the Only Manuel? (1998) A good idea? (1998) WebCat2 - Getting to the browser's username/password data (1997) Merging databases (1997) WebCatalog can't find database (1997) OS X Server & Uploads (2001) OFF-TOPIC: Lending investors ... (2002) WebCatalog for Postcards ? (1997) Error.html (1997)