Re: [WebDNA] How to stop cutting a word

This WebDNA talk-list message is from

2008


It keeps the original formatting.
numero = 100201
interpreted = N
texte = Stuart Tremain wrote: > Thanks Frank, I will give it a go :) Hope it works but as I said, I don't really know exactly what I've done in this case. The code isn't actually supposed to work according to the documentation. ;-) Anyway, there's always the brute force approach - not very elegant but guaranteed to do the job: [TEXT] TEXTSTRING= a[GETCHARS start=219&end=261][BODY][/GETCHARS]a [/TEXT] [TEXT] LASTWORD=[COUNTWORDS delimiters= ][TEXTSTRING][/COUNTWORDS] [/TEXT] [LISTWORDS delimiters= &words=[TEXTSTRING]] [HIDEIF [INDEX]=1] [HIDEIF [INDEX]=[LASTWORD]] [HIDEIF [INDEX]=2] [/HIDEIF] [WORD] [/HIDEIF] [/HIDEIF] [/LISTWORDS] (Note: you may have to remove some line shifts from this code - exepcially the ones within a [TEXT][/TEXT] context.) (Note 2: The variable [TEXTSTRING] starts and ends with a (randomly chosen) fixed character and includes an extra character from [BODY] at each end. This is to ensure that the script doesn't filter out words you want to keep.) Frank Nordberg http://www.musicaviva.com 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: > Thanks Frank, I will give it a go :) Hope it works but as I said, I don't really know exactly what I've done in this case. The code isn't actually supposed to work according to the documentation. ;-) Anyway, there's always the brute force approach - not very elegant but guaranteed to do the job: [text] TEXTSTRING= a[GETCHARS start=219&end=261][BODY][/GETCHARS]a [/TEXT] [text] LASTWORD=[COUNTWORDS delimiters= ][TEXTSTRING][/COUNTWORDS] [/TEXT] [LISTWORDS delimiters= &words=[TEXTSTRING]] [HIDEIF [INDEX]=1] [HIDEIF [INDEX]=[LASTWORD]] [HIDEIF [INDEX]=2] [/HIDEIF] [WORD] [/HIDEIF] [/HIDEIF] [/LISTWORDS] (Note: you may have to remove some line shifts from this code - exepcially the ones within a [text][/TEXT] context.) (Note 2: The variable [TEXTSTRING] starts and ends with a (randomly chosen) fixed character and includes an extra character from [BODY] at each end. This is to ensure that the script doesn't filter out words you want to keep.) Frank Nordberg http://www.musicaviva.com 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:

Snake Bites (1997) [Announce] DNAAds v1.0 (2003) FM PRO Compatibility Issue - Single Database w/o Conversions (1997) php vs WebCatalog (2000) Rumpus/Typhoon modules included in Typhoon ... (1997) AppleScript: Tell application:app location? (1998) authorize.net CC processing (was WC on Mac OS X or Mac OS (2001) So .. How fast (2003) Problems with SELECT MULTIPLE (1999) Credit Card Number checking (1997) Dark Horse Comics success story (1997) PIXO support (1997) return missing item (was:WebCat Sales) (1997) [WebDNA] Content-Type (2010) protect tag on NT IIS (1997) Exclude by date - multiple (1997) Display [price] in banner ad (1998) Emailer setup (1997) Problems with date math (1997) Searching multiple Databases (1997)