RE: Forcing Paragraph Breaks on Results

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 21890
interpreted = N
texte = Sometimes, being on the digest is kind of a pain 8^) Dave MacLea said: >[ConvertChars][fieldName][/ConvertChars] will do what you want.And PCS said: >This will work as long as the original text has carriage returns in it, >because it will convert those to HTML
tags. Not sure if this is what >you were originally asking for, but if so, then this is the correct >solution.Ken also said at some point: >A long time ago, PCS found a way to make [boldwords] put tags around a >multi-character match string, so I see no reason why they cannot use a similar >technique to replace one match string with a different string ...Then Olin offered: >We use this to search a string for another string and replace with another >string. To use, create 2 include files as follows: > >=== begin includes/replaceString.inc=== >[math >show=f]ilen=[countchars][sOriginal][/countchars][/math][text]sTmp=[/text][ma >th show=f]iBInd=1[/math][math show=f]iEndx=1[/math][math >show=f]iFlen=[countchars][sFind][/countchars] Our users routinely paste long clippings into database fields - clippings with anywhere from 10 to 100 sentences per field. What I was asking to do is to force the insertion of a

break, say after every 10 sentences, but on the results/ displayed side, rather than including them in the database. Maybe it would be easier to insert them as part of the original [append]. . . ?Ken's (and now my) desire to have an additional mechanism like [boldwords] available to tag certain strings would be the most cherished solution, but in the meantime, I'll prolly give Olin's intricate [include] files a go.Sorry if my intentions weren't more clear from the start. Thanks very much to all!!-- [/dave] webmaster metropolitan community colleges kansas city, missouri http://www.kcmetro.cc.mo.us mailto:herriman@kcmetro.cc.mo.us Associated Messages, from the most recent to the oldest:

    
  1. RE: Forcing Paragraph Breaks on Results (dave herriman 1998)
  2. RE: Forcing Paragraph Breaks on Results - Yes you can replace String for String! (Olin Lagon 1998)
  3. Re: Forcing Paragraph Breaks on Results (PCS Technical Support 1998)
  4. Re: Forcing Paragraph Breaks on Results (Dave MacLeay 1998)
  5. Re: Forcing Paragraph Breaks on Results (Kenneth Grome 1998)
  6. Re: Forcing Paragraph Breaks on Results (Kenneth Grome 1998)
  7. Re: Forcing Paragraph Breaks on Results (Kenneth Grome 1998)
  8. Re: Forcing Paragraph Breaks on Results (PCS Technical Support 1998)
  9. Re: Forcing Paragraph Breaks on Results (Dave MacLeay 1998)
Sometimes, being on the digest is kind of a pain 8^) Dave MacLea said: >[convertchars][fieldName][/ConvertChars] will do what you want.And PCS said: >This will work as long as the original text has carriage returns in it, >because it will convert those to HTML
tags. Not sure if this is what >you were originally asking for, but if so, then this is the correct >solution.Ken also said at some point: >A long time ago, PCS found a way to make [boldwords] put tags around a >multi-character match string, so I see no reason why they cannot use a similar >technique to replace one match string with a different string ...Then Olin offered: >We use this to search a string for another string and replace with another >string. To use, create 2 include files as follows: > >=== begin includes/replaceString.inc=== >[math >show=f]ilen=[countchars][sOriginal][/countchars][/math][text]sTmp=[/text][ma >th show=f]iBInd=1[/math][math show=f]iEndx=1[/math][math >show=f]iFlen=[countchars][sFind][/countchars] Our users routinely paste long clippings into database fields - clippings with anywhere from 10 to 100 sentences per field. What I was asking to do is to force the insertion of a

break, say after every 10 sentences, but on the results/ displayed side, rather than including them in the database. Maybe it would be easier to insert them as part of the original [append]. . . ?Ken's (and now my) desire to have an additional mechanism like [boldwords] available to tag certain strings would be the most cherished solution, but in the meantime, I'll prolly give Olin's intricate [include] files a go.Sorry if my intentions weren't more clear from the start. Thanks very much to all!!-- [/dave] webmaster metropolitan community colleges kansas city, missouri http://www.kcmetro.cc.mo.us mailto:herriman@kcmetro.cc.mo.us dave herriman

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:

Protect (1997) Online reference (1997) [OT] Patent Attorney (2002) Almost a there but..bye bye NetCloak (1997) [LOOKUP] (1997) WebCat website for developers and hosters (2001) Using [Showif] tag. Mac (1997) Converting order file to database (1998) Orders to FMPro (2005) Simple way to create unique SKU (1997) WebDNAdev.net Widget (2003) Running 2 two WebCatalog.acgi's (1996) Re1000001: Setting up shop (1997) Adding Shipping Costs based on percent of subtotal (1997) Directory Overload (1998) Manual and Mime WebDNA 5 (2003) how to put/keep product customization info in basket? (1998) .. more on sliding discounts... (1997) Not really WebCat (1997) Question re: FlushDatabases (1997)