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:

duplicate cart numbers (2002) How much is too much? I can never remember the answer. (2002) Waitfor file (2000) Question about replacing words (1998) WebDNA 5.0 Enterprise Edition (2003) Sorry WebCat server not running (2001) email [title] (1997) WebCatalog can't find database (1997) Plugin or CGI or both (1997) WebCat b13 CGI -shownext- (1997) Emailer update for Mac? (1998) Can't add a field (1998) [WebDNA] Checking a radio button (2008) SiteGuard Admin Feature ? (1997) Removing [showif] makes a big difference in speed (1997) 100% cpu load (2006) [protect admin] (1997) Size Limitation through a POST via SSL? (2005) Shipcost lookup? (1997) Limit to Field Length in DB (1998)