User Tag List

Results 1 to 7 of 7

Thread: Extracting text to a list box

  1. #1
    No Products Registered

    Join Date
    Apr 2008
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Extracting text to a list box

    Hi guys, I'm trying to make a program that'll extract a bunch of info from a pasted page (to automate the data entering process, basically).

    I can pull static values fine from an edit box fine with string parser, but as soon as it comes to information that moves direction and whos values change from 2 to 3 digits, the task becomes nearly impossible (unless you can search for the enter "character", which i don't think you can.

    My next best plan is to then take what was in this multi-line text box and put it into a list (with each line break being a new line in the list box) but I can't figure out how to do this either.

    Can anyone shed some light on this for me?

  2. #2
    No Products Registered

    Join Date
    Apr 2008
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Extracting text to a list box

    Nobody has any ideas? There has to be some way to do this...

  3. #3
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    California, USA
    Posts
    1,247
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)

    Re: Extracting text to a list box

    can you provide an example?
    DT
    Special Projects Director

  4. #4


    Join Date
    Sep 2007
    Posts
    221
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Extracting text to a list box

    look:
    http://updo.vicp.cc/ToolsMmf2/Extracting-text-to-a-list-box.mfa.zip

  5. #5
    No Products Registered

    Join Date
    Apr 2008
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Extracting text to a list box

    looking into to mmf2, it's hard because it's in another language but I'll get it eventually.

    Basically DT my goal is this: you pull up a stat sheet from a website, where things are jumbled around, like it might be

    "metal bat: 414
    shopping cart: 18
    movie rental: 418"

    And I need to pull those numbers out, then multiply them by a certain value (depending on what it's in reference), then add them all together. So the battle strategy was to have alternate values A-X be a unique "type", extract the text and then just add them. Problem is, this isn't working with the string parser, so my next idea was to add it to a list box, then edit the text line-by-line looking for keywords and if they're present grab the end of the string.

    http://www.mediafire.com/download.php?2igdi2dhqyy

    There's a copy of my file so you can see what's going on.

  6. #6
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Jun 2006
    Location
    Australia
    Posts
    988
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Extracting text to a list box

    If you have this data loaded into a list:

    metal bat: 414
    shopping cart: 18
    movie rental: 418

    You can get the numbers using string parser and using [space] as your delimeter " ".

    On each loop you set the current string of the string parser to the current line you are on, and then to get the number you simply use "get last element".

    The only problem is, I looked at your mfa file and that data file isn't neatly formatted like that example. Do you need to get all the junk at the top? Or only the weapon data? - It should work fine if you only need the weapon data.

  7. #7
    No Products Registered

    Join Date
    Apr 2008
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Extracting text to a list box

    Well two issues, one you can't set it to a line of an edit box (at least to my knowledge), and two the things appear in a random order depending on when purchased, so I can't simply look for every : or something.

Similar Threads

  1. There's gotta be a way to center text in a list object, right...?
    By ratty in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 20th September 2013, 12:49 AM
  2. How to select text from a column of a List View?
    By RGBreality in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 25th June 2010, 04:32 AM
  3. list object, setting text
    By richardh in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 28th February 2010, 01:58 AM
  4. Extracting Text Using String Parser?
    By pinacoladaxb in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 22nd September 2009, 01:59 AM
  5. Read Through List Box for Matching Text?
    By Stephen in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 1st March 2009, 01:01 AM

Posting Permissions

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