User Tag List

Results 1 to 3 of 3

Thread: Word Counting Problem

  1. #1
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Aug 2006
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Word Counting Problem

    With the string parser/tokens object and rich edit i can make it count words using a space " " but if i make new line this messes up. If on a new line and you type a word it will think it's the last word still, if i add a space to the first line it then counts the word but if you also add a space before the word it adds to the count also.

    Is there anyway to fix this so that if you use a new line it doesn't require to add a space to the end of the line to count the first word typed on the new line? Or a better method of word counting rather than checking if text follows the " " character?

    It works fine if it's just a single line always like a edit box but it needs to be multi line (Rich Edit based) for what im doing. If anyone has any ideas/examples that would be great, thanks.

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Word Counting Problem

    Can't you just split the text using String Tokenizer with these delimters?
    Code:
    " "+Newline$

  3. #3
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Aug 2006
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Word Counting Problem

    Wow, yes that works great and is a nice and simple method thanks.

Similar Threads

  1. Individual word by word string comparison?
    By ratty in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 5th May 2013, 05:52 PM
  2. Highlight text word by word - grammar exercises
    By Boba Fonts in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 5th September 2011, 05:36 PM
  3. Problem! :( Find and replace a word...
    By ChrisStreet in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 28th May 2010, 10:22 PM
  4. Problem counting down variable
    By DisneyBoy in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 12th January 2010, 12:56 PM
  5. Word Totals Counting?
    By Atom in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 21st September 2009, 05:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •