User Tag List

Results 1 to 2 of 2

Thread: String Parser Delimiter issue

  1. #1
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    AndyH's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    1,446
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    String Parser Delimiter issue

    I am loading a string into the String Parser object and setting the delimiter to |,| as that is what my delimiters are.

    I then use listCount( "String Parser" ) and I'm finding it is returning one less than the actual number of delimiters I have in my string.

    It turns out that the last delimiter is at the end of the string and this is being ignored. As a work around, when I set the string in the string parser, I add +" " to the end to make it one character longer, then it works.

    This happens in both the MMF and Flash runtimes. Could it please be fixed?

  2. #2
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    AndyH's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    1,446
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: String Parser Delimiter issue

    Another related issue is that if two delimiters are back to back with each other, when using the listGetAt$() function it is ignoring/not counting the second delimiter ... or at least that what appears to be happening.

    eg:

    First|,||,|Third|,|Fourth|,|Fifth|,|Sixth|,|

    With the delimiter set to |,| on the above string, using listGetAt$ with a parameter of 1 returns "First" (correct), however a paramter of 3 returns "Fourth" instead of Third.

    If I force my source string to have a space between each delimiter it will return what I would expect it to, eg:

    First|,| |,|Third|,|Fourth|,|Fifth|,|Sixth|,|
    ** note the space between the delimiters after First and before Third.

    listGetAt$ with a parameter of 3 now returns "Third" which is correct.

Similar Threads

  1. String splitting with string parser
    By Sejez in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 5th February 2013, 05:31 AM
  2. Using String Parser to check for any punctuation in a string
    By Apex in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 18th May 2012, 11:03 PM
  3. String Parser or String Parser 2? Vitalized
    By DJ_Wild in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 5th September 2009, 10:12 AM
  4. Good string parser delimiter ?
    By Rushino in forum Multimedia Fusion 2 - Technical Support
    Replies: 14
    Last Post: 27th November 2006, 07:27 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
  •