Re: Google does it... can WebDNA? Showing only the section

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 52568
interpreted = N
texte = Tim, This code was posted on the list some time ago by some kind soul. I = have deleted code specific to my use of it so you better check for any = cut and paste errors. - Tom [!]=0D=0D=0D=0D------------------------------------=0D### Search = Results ###=0D=0D[/!][search = db=3Dsomedb.db&searchcriteria=3D[_waGROUP1data]][founditems][!]=0D=0D=0D-= -----------------------------------=0D### Set how many characters to = show before and after the word ###=0D=0D[/!][MATH = show=3DF]vShowChars=3D80[/MATH][!]=0D=0D=0D------------------------------= ------=0D### Set the length of the word ###=0D=0D[/!][MATH = show=3DF]vWordLen=3D[COUNTCHARS][_waGROUP1data][/COUNTCHARS][/MATH][!]=0D= =0D=0D------------------------------------=0D### Get the position of = the word ###=0D=0D[/!][MATH show=3DF]vWordPos=3D[COUNTCHARS][MIDDLE = StartAfter=3D&EndBefore=3D[_waGROUP1data]][BTEXT][/MIDDLE][/COUNTCHARS][/= MATH][!]=0D=0D=0D------------------------------------=0D### Grab the = text you want ###=0D=0D[/!][TEXT]vTextToShow=3D[GETCHARS = start=3D[MATH]vWordPos-vShowChars[/MATH]&end=3D[MATH]vWordPos+vShowChars+= vWordLen[/MATH]][removehtml][BTEXT][/removehtml][/GETCHARS][/TEXT][!]=0D=0D= =0D------------------------------------=0D### Show the result = ###=0D=0D[/!]

[BOLDWORDS = [_waGROUP1data]][vTextToShow][/BOLDWORDS]...

=0D=0D=0D[/founditems][/s= earch] ------------------------------------------------------------- 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: Google does it... can WebDNA? Showing only the section ( "Tom Duke" 2003)
  2. Re: Google does it... can WebDNA? Showing only the section with ( Tim Robinson 2003)
  3. Re: Google does it... can WebDNA? Showing only the section with ( Tim Robinson 2003)
  4. Re: Google does it... can WebDNA? Showing only the section ( "Tom Duke" 2003)
  5. Re: Google does it... can WebDNA? Showing only the section ( "Andrew Simpson" 2003)
  6. Re: Google does it... can WebDNA? Showing only the section ( Glenn Busbin 2003)
  7. Google does it... can WebDNA? Showing only the section with ( Tim Robinson 2003)
Tim, This code was posted on the list some time ago by some kind soul. I = have deleted code specific to my use of it so you better check for any = cut and paste errors. - Tom [!]=0D=0D=0D=0D------------------------------------=0D### Search = Results ###=0D=0D[/!][search = db=3Dsomedb.db&searchcriteria=3D[_waGROUP1data]][founditems][!]=0D=0D=0D-= -----------------------------------=0D### Set how many characters to = show before and after the word ###=0D=0D[/!][MATH = show=3DF]vShowChars=3D80[/MATH][!]=0D=0D=0D------------------------------= ------=0D### Set the length of the word ###=0D=0D[/!][MATH = show=3DF]vWordLen=3D[countchars][_waGROUP1data][/COUNTCHARS][/MATH][!]=0D= =0D=0D------------------------------------=0D### Get the position of = the word ###=0D=0D[/!][MATH show=3DF]vWordPos=3D[countchars][MIDDLE = StartAfter=3D&EndBefore=3D[_waGROUP1data]][BTEXT][/MIDDLE][/COUNTCHARS][/= MATH][!]=0D=0D=0D------------------------------------=0D### Grab the = text you want ###=0D=0D[/!][text]vTextToShow=3D[GETCHARS = start=3D[math]vWordPos-vShowChars[/MATH]&end=3D[math]vWordPos+vShowChars+= vWordLen[/MATH]][removehtml][BTEXT][/removehtml][/GETCHARS][/TEXT][!]=0D=0D= =0D------------------------------------=0D### Show the result = ###=0D=0D[/!]

[BOLDWORDS = [_waGROUP1data]][vTextToShow][/BOLDWORDS]...

=0D=0D=0D[/founditems][/s= earch] ------------------------------------------------------------- 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/ "Tom Duke"

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:

reversing the effects of [url] (1997) [CART] (1997) Help please (2004) Pipes instead of tabs (1998) Encrypt/Decrypt (2007) [BULK] Fwd: [WebDNA] [BULK] WebDNA discovery in the Console - [having many crashes] (2011) Some shell fun (2004) Who is hosting? (2006) PCS Emailer's role ? (1997) [WebDNA] [BULK] WebDNA 7 - Bug Reporting (2011) Date Formats (1997) Size/Color Options (2002) limitation found on group searching (1997) SKU lookup (1997) [WebDNA] multi [sendmail] inside [search] (2012) Rotating Banners ... (was LinkExchange) (1997) Exclamation point (1997) Adding Message to Order (1997) RedHat Linux glibc version 2.1.2 or higher required (2000) email database file (2005)