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:

WC2b12: Yes, Formulas.db is for real (1997) WebCat2 - Getting to the browser's username/password data (1997) [WebDNA] How to test email validity? (2011) Subject: Authenticating users without dialog box (1997) Bulletin Board (1998) Price Not Appearing SOLUTION (2000) [OT] .php3 extension (2000) Possible Bug in 2.0b15.acgi (1997) SSL question (2005) WebDNA CAPTCHA (2008) Sku numbers (1997) Emailer setup (1997) Re WebDNA has reached it connection limit (2004) Re:no [search] with NT (1997) WebCatalog can't find database (1997) Error.html (1997) NewCart+Search with one click ? (1997) Signal Raised Error (Part II) (1997) Searching,Brain Dead! (1999) WebCat2b13MacPlugIn - More limits on [include] (1997)