User Tag List

Results 1 to 5 of 5

Thread: String parsing issues

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    Jun 2009
    Location
    Earth
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    String parsing issues

    Heya everyone

    I am having a few problems trying to write a text parser.
    Without going into detail, it needs to;

    • Iterate through each character in the text,
    • Count the number of tabs,
    • Count the number of lines.


    I first tried using an edit box, but my only method of iterating involved doing Right$(Left$(blah,i),1) which crashed the program when blah got too large (It can get REALLY large). So then I tried the rich edit object, which has a function to get the text between two chars, but it refused to treat the enter character as real, meaning I had no way to find which line I was on. So then I tried using a list object, going line by line then character by character, but I found that it deletes tab characters.

    Is there any other objects that can do what I want? Or some method I haven't thought of? And does the rich edit object have a function to get what line a char is on?

    Any help is greatly appreciated

  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Why are you doing a crazy Right$(Left$()) thing? That is what Mid$() is for.
    Working as fast as I can on Fusion 3

  3. #3
    Clicker Multimedia Fusion 2

    Join Date
    Jun 2009
    Location
    Earth
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I thought Mid$ could only get the very middle of a string and a specified number of letters surrounding it D:
    I feel so stupid now T_T

  4. #4
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Nah, don't feel stupid.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  5. #5
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by JIMJ316 View Post
    I thought Mid$ could only get the very middle of a string and a specified number of letters surrounding it D:
    I thought the same thing when I first saw it years ago!
    Working as fast as I can on Fusion 3

Similar Threads

  1. Find String in String issues
    By DistantJ in forum Android Export Module Version 2.0
    Replies: 2
    Last Post: 13th February 2013, 12:35 PM
  2. Beta 12: String Issues
    By Kisguri in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 11th January 2012, 09:49 PM
  3. Enemy spawn saving with string parsing.
    By SEELE in forum File Archive
    Replies: 6
    Last Post: 4th May 2008, 07:59 PM
  4. Extensive String Parsing! Need help.
    By Conno in forum Multimedia Fusion 2 - Technical Support
    Replies: 20
    Last Post: 18th May 2007, 08:39 PM
  5. String parsing
    By Nickydude in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 3rd April 2007, 04:05 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
  •