User Tag List

Results 1 to 9 of 9

Thread: Is the String Parser Insert Element-Function Broken?

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Chrille's Avatar
    Join Date
    Jul 2006
    Posts
    389
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy Is the String Parser Insert Element-Function Broken?

    I've run into a problem with the String Parser-object. The Insert Element-expression doesn't work properly and instead gives similiar results to the Set Element-expression.

    I'm using "," as a delimiter and created a String object (String A), setting it to "one,two,three,four,five,six," for testing.
    I created another String object (String B), that I always set to the String Parser's String to see what result I am getting.

    So, here's what the code looks like:

    Code:
    Start of Frame:
    * Add Delimiter "," to String Parser
    * Set String A to "one,two,three,four,five,six,"
    
    Always:
    * Set String B to String Parser-String
    
    Spacebar is Pressed:
    * Set String Parser-String to "listInsertAt$(String Parser, "TEST", 3)"
    The result I'd expect to get from that is:
    "one,two,TEST,three,four,five,six,"

    But what I get instead is:
    "one,two,TEST,,four,five,six,"

    So it seems that the String Parser deletes Element 3 while at the same time inserting a new Element 3, judging by that extra "," there. Is this a known issue, or have I misunderstood how the Insert Element-expression works? I can solve this with a loop, but it seems a shame since my desired function is supposed to already exist.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleInstall CreatorUnicode Add-on

    Join Date
    Jul 2006
    Posts
    1,017
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, prepend and insert element is broken. Report is already in the Bug Tracker.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Chrille's Avatar
    Join Date
    Jul 2006
    Posts
    389
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah, I didn't think to search there first. Thanks for clearing things up.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleInstall CreatorUnicode Add-on

    Join Date
    Jul 2006
    Posts
    1,017
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maybe you can answer/write a comment on the report in the Bug Tracker.
    So CT sees that more than one person has a problem with this bug.

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Chrille's Avatar
    Join Date
    Jul 2006
    Posts
    389
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Noticed it was just reported 11 days ago. Is this a new bug then? I thought the String Parser was an old object no longer updated.

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleInstall CreatorUnicode Add-on

    Join Date
    Jul 2006
    Posts
    1,017
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It seems Clickteam has the source code because String Parser is available for all runtimes.

    And I think it's necessary because the string functions in Fusion are very limited.

  7. #7
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,820
    Mentioned
    7 Post(s)
    Tagged
    2 Thread(s)
    Is this also broken in the Fusion 2.5 version of the extension?

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleInstall CreatorUnicode Add-on

    Join Date
    Jul 2006
    Posts
    1,017
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, Jeff. If you haven't seen yet, there is an example file for Fusion 2.5 in the Bug Tracker entry of this issue.

  9. #9
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    diefox's Avatar
    Join Date
    Feb 2007
    Posts
    123
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    haha, just ran into this problema right now, too bad the bugtracker is offline, I would really like to see if that has been fixed =(

Similar Threads

  1. String Parser empty element?
    By crugh in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 13th February 2017, 02:01 AM
  2. Md5 function of string parser not working in Android
    By FrankyAsh in forum Android Export Module 2.5
    Replies: 7
    Last Post: 8th April 2014, 02:48 PM
  3. String Parser question - sort by 3rd element?
    By ChrisBurrows in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 29th July 2012, 06:12 AM
  4. Bugs in String parser and fast function objects
    By jdv in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 24th July 2010, 09:33 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
  •