Re: Do not truncate a whole word

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 59904
interpreted = N
texte = Here's how I do it (requires WebDNA 6 for "listchars")... This example will show between 50 and 60 characters, stopping at the first space character in that range. [text]done=F[/text] [getchars start=1&end=50][x][/getchars][listchars start=51&end=60&chars=[url][x][/url]][hideif [done]=T][if "[char]"=" "][then][text]done=T[/text][/then][else][char][/else][/if][/hideif][/ listchars] - brian On Nov 4, 2004, at 11:14 PM, Stuart Tremain wrote: > Hi > > I need a little help here. I want to truncate a paragraph of text but > do not want to cut it off mid way through a word. > > Something like this is not acceptable. > > should truncate to: > > Something like this is not ... > > Rather than: > > Something like this is not accp ... > > Any ideas ???? > > Thanks > > Stuart Tremain > idfk web developments, sydney, australia > -- Brian Fries, BrainScan Software -- http://www.brainscansoftware.com -- ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Do not truncate a whole word ( Brian Fries 2004)
  2. Re: Do not truncate a whole word ( Kenneth Grome 2004)
  3. Re: Do not truncate a whole word ( Steve Craig 2004)
  4. Re: Do not truncate a whole word ( Stuart Tremain 2004)
  5. Re: Do not truncate a whole word ( Kenneth Grome 2004)
  6. Do not truncate a whole word ( Stuart Tremain 2004)
Here's how I do it (requires WebDNA 6 for "listchars")... This example will show between 50 and 60 characters, stopping at the first space character in that range. [text]done=F[/text] [getchars start=1&end=50][x][/getchars][listchars start=51&end=60&chars=[url][x][/url]][hideif [done]=T][if "[char]"=" "][then][text]done=T[/text][/then][else][char][/else][/if][/hideif][/ listchars] - brian On Nov 4, 2004, at 11:14 PM, Stuart Tremain wrote: > Hi > > I need a little help here. I want to truncate a paragraph of text but > do not want to cut it off mid way through a word. > > Something like this is not acceptable. > > should truncate to: > > Something like this is not ... > > Rather than: > > Something like this is not accp ... > > Any ideas ???? > > Thanks > > Stuart Tremain > idfk web developments, sydney, australia > -- Brian Fries, BrainScan Software -- http://www.brainscansoftware.com -- ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Brian Fries

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:

Image Upload and Auto Resize? (2003) HomePage Caution (1997) shipcost (1997) refreshing IE with posted .tmpl (1997) emailer (1997) WebCat2: Items xx to xx shown, etc. (1997) FYI: virus alert (1996) WebCatalog NT beta 18 now available (1997) F3 crashing server (1997) Another bug to squash (WebCat2b13 Mac .acgi) (1997) Not really WebCat- (1997) Searching Multiple DBs (1997) How to Display text in empty fields (1997) More on the email templates (1997) New Website with Redakto CMS (2003) User/pass with tcpconnect (2000) Nested tags count question (1997) Help! WebCat2 bug (1997) WebCat2b12--[searchstring] bug (1997) RE: Answer: WebDelivery downloads alias, not original ? (1997)