User Tag List

Results 1 to 3 of 3

Thread: Need Help with String Parser and Strings

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    CBSection31's Avatar
    Join Date
    Apr 2007
    Location
    Aurora, IL, USA
    Posts
    108
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Need Help with String Parser and Strings

    Hi everyone,

    I could use some help. I am trying to design a way to dynamically replace a part of the text of a string object that is compatible with iOS, Android, and HTML5.

    Let me give you an example. Let's say I have an INI file as follows:

    [Text]
    Line=The culpret is *person*.
    person=John

    What I want is to have a string object display the line, "The culpret is John."

    This would be easy if I am only using a single string, because I could use the String Parser object to replace the substring "*person*" with Str$(GroupItemValue("INI Object", "Text", "number")). However, I want to be able to dynamically use any string I define (as there will be hundreds), without having to specify each string as a separate condition in Fusion itself.

    I think that this will involve somehow using the String Parser object to search for any word within asterisks and replace its contents of that with the string defined in the INI file that has the same name. The problem is, I'm not sure how to set this up, or whether it is even possible.

    I'm hoping that someone with some more knowledge could assist me.

    Thank you for your time and help. If you have any questions or need clarification, please don't hesitate to ask. Thanks again!

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    I've made you an example that uses fastloops and the Mid$() function. I tried to explain the process, but it was easier to just make an example
    Attached files Attached files

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    CBSection31's Avatar
    Join Date
    Apr 2007
    Location
    Aurora, IL, USA
    Posts
    108
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you so much, this is exactly what I needed!

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. Setting Multiple source strings in String parser
    By Dynamite in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 1st March 2009, 07:41 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
  •