Re: [WebDNA] unique words

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 103444
interpreted = N
texte = System Administrator wrote: > does wbdna offer any type of [unique] to pull duplicate words from a > file...? Something like this should do the trick: [ListWords Words=text with some repeated words with repeated words][!] [/!][ShowIf [index]=1][!] [/!][Text]usedwords=+[word][/Text][!] [/!][word] [!] [/!][/ShowIf][!] [/!][HideIf [usedwords]^+[word]][!] [/!] [word][!] [/!][/HideIf][!] [/!][Text]usedwords=[usedwords]+[word][/Text][!] [/!][/ListWords] This is untested and unchecked code written in a hurry though. I don't promise it'll work but at least it ought to get you on the right track. Or perhaps I misunderstood you. The script above is supposed to *remove* duplicate words. If you want a list of only the words that appears more than once, you should try: [ListWords Words=text with some repeated words with repeated words][!] [/!][ShowIf [index]=1][!] [/!][Text]usedwords=+[word][/Text][!] [/!][/ShowIf][!] [/!][ShowIf [usedwords]^+[word]][!] [/!][word] [!] [/!][/ShowIf][!] [/!][Text]usedwords=[usedwords]+[word][/Text][!] [/!][/ListWords] or something like that. 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] unique words (William DeVaul 2009)
  2. Re: [WebDNA] unique words (System Administrator 2009)
  3. Re: [WebDNA] unique words (William DeVaul 2009)
  4. Re: [WebDNA] unique words (System Administrator 2009)
  5. Re: [WebDNA] unique words (William DeVaul 2009)
  6. Re: [WebDNA] unique words (System Administrator 2009)
  7. Re: [WebDNA] unique words (Frank Nordberg 2009)
  8. Re: [WebDNA] unique words (Frank Nordberg 2009)
  9. Re: [WebDNA] unique words (Kenneth Grome 2009)
  10. [WebDNA] unique words (System Administrator 2009)
System Administrator wrote: > does wbdna offer any type of [unique] to pull duplicate words from a > file...? Something like this should do the trick: [ListWords Words=text with some repeated words with repeated words][!] [/!][ShowIf [index]=1][!] [/!][text]usedwords=+[word][/Text][!] [/!][word] [!] [/!][/ShowIf][!] [/!][HideIf [usedwords]^+[word]][!] [/!] [word][!] [/!][/HideIf][!] [/!][text]usedwords=[usedwords]+[word][/Text][!] [/!][/ListWords] This is untested and unchecked code written in a hurry though. I don't promise it'll work but at least it ought to get you on the right track. Or perhaps I misunderstood you. The script above is supposed to *remove* duplicate words. If you want a list of only the words that appears more than once, you should try: [ListWords Words=text with some repeated words with repeated words][!] [/!][ShowIf [index]=1][!] [/!][text]usedwords=+[word][/Text][!] [/!][/ShowIf][!] [/!][ShowIf [usedwords]^+[word]][!] [/!][word] [!] [/!][/ShowIf][!] [/!][text]usedwords=[usedwords]+[word][/Text][!] [/!][/ListWords] or something like that. 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:

Syntax of a URL for including ?cart=[cart] and #something? (1998) Require Value to be a Num (1998) WCS Newbie question (1997) Sun doesn't have an emailer app? (2000) Wanted: More Math Functions (or, Can You Solve This?) (1997) form data submission get (1997) Weird Problem (1997) More on the email templates (1997) test (2001) HideIf ip= OR ip= (1998) emailer settings and control questions (1997) WebCat2: multiple currency support (1997) Sorting search by date. (2000) Locking up with WebCatalog... (1997) Search in 2 or more catalogs (1997) carriage returns in data (1997) Feature Request: ! character bug correct in [showif[variable]=] (2000) Generating Report Totals (1997) OT: Typhoon (1998) [WebDNA] WebDNA app (2013)