User Tag List

Results 1 to 7 of 7

Thread: how to take the values ​​in a string?

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleXNA Export Module
    daniele's Avatar
    Join Date
    Nov 2007
    Location
    italy
    Posts
    413
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    how to take the values ​​in a string?

    is possible to take only a part of a value as this?

    <BytesSample sampleTime="00:00:41.870" data="660103010201" /> -201-WATER-

    I want to take the time and the final value, is it possible?
    Example:
    00:00:41.870 in the "global Strings A"
    And
    201 In the Global value B

    I have to take only two values​​, but it is very difficult when there are other values ​​that row or written, you know how?
    I entered an empty file, you can write the 'event which takes only the time and' last number value of that string?
    Regards
    Attached files Attached files

  2. #2
    Clicker Fusion 2.5 DeveloperiOS Export Module
    ChrisBurrows's Avatar
    Join Date
    May 2011
    Location
    Tasmania, Australia
    Posts
    622
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    This will work providing the substrings never more or change length.
    Attached files Attached files

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleXNA Export Module
    daniele's Avatar
    Join Date
    Nov 2007
    Location
    italy
    Posts
    413
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    I found a solution, but this solution is good only if that string is the number of characters are always the same, but I would always have a solution that takes these values ​​even if the number of characters not good increases or decreases
    Attached files Attached files

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleXNA Export Module
    daniele's Avatar
    Join Date
    Nov 2007
    Location
    italy
    Posts
    413
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    ahaha :-)
    I read your response after I prepared the new file!
    Incredible.
    thanks anyway, is good as a solution but not always

  5. #5
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    You just use the "find string in string" expression to locate the starting point of the substring you want - eg. "sampleTime=""
    and then run a fastloop to copy the following characters one at a time, until you hit a character that marks the end of the substring you want - in this case another quotation mark.

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleXNA Export Module
    daniele's Avatar
    Join Date
    Nov 2007
    Location
    italy
    Posts
    413
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Thanks, I tried but I can not create the right 'expression. could you please change my example to the string that gets only that value?

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleXNA Export Module
    daniele's Avatar
    Join Date
    Nov 2007
    Location
    italy
    Posts
    413
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Hello, I solved a problem, now I have one more great and I hope to have your help as I have always given.

    I want to separate the rows and copy them into the column, but must be divided in relation to the last line number.
    If the final number is "3" the entire line must be copied in the column "3" but I do not know how to do this.
    Daniele
    Attached files Attached files

Similar Threads

  1. Sell ​​in-game items?
    By Johnny in forum iOS Export Module Version 2.0
    Replies: 4
    Last Post: 17th October 2013, 06:15 AM
  2. Save the values ​​of the counter objects in an ini file (?)
    By daryuss in forum Multimedia Fusion 2 - Technical Support
    Replies: 30
    Last Post: 11th October 2012, 02:18 PM
  3. Reviews games made ​​in MMF (App Store)
    By Koji_Kabuto in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 25th January 2012, 08:16 AM
  4. String -> Values?
    By Jesse in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 22nd October 2007, 06:21 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
  •