User Tag List

Results 1 to 6 of 6

Thread: help! how do strings work?

  1. #1
    No Products Registered

    Join Date
    Sep 2006
    Location
    Greece
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    help! how do strings work?

    probably easy for most of you. Suppose I have an .ini with a line like

    item1= 1 07 corrupt full helm

    how do I tell MMF to read the numbers 1,07 seperately and the words "corrupt full helm" as a string ?

    I know I could instead write
    item1no= 1
    item1dir= 07
    item1name= corrupt full helm

    but is there a way I can do it as one line?

    thanks

  2. #2
    No Products Registered

    Join Date
    Jun 2006
    Location
    Texas
    Posts
    1,002
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: help! how do strings work?

    well "1 07 corrupt full helm" forms a string. I would use String Parser 2 and set " " as a delimiter. Then you can get the numbers as the first two elements, and the string as the other elements. Really it would be easier if you had some way to seperate the string from the numbers as the spaces in the word "corrupt full helm" make it so you can't just get that as one complete element (the string parser would break that up into three elements because it has two spaces).

    Now if you had something like "1|07|corrupt full helm" and used "|" as a delimiter then you could get all of the elements fairly easily :P .

  3. #3
    No Products Registered

    Join Date
    Sep 2006
    Location
    Greece
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: help! how do strings work?

    awesome! thanks!
    so assuming I have something like 1*07*corrupt full helm , and I set my delimiter to "*" what would the code look like if I want to get
    1.the value 1
    2. the value 07 and
    3. the string of text?

    (I have no clue how the string parser2 object works)

    thanks!!

  4. #4
    No Products Registered

    Join Date
    Mar 2007
    Location
    San Diego
    Posts
    280
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: help! how do strings work?

    *Start of Frame
    -String Parser: Add Delimiter "*"

    Use the set source string action to set the source string of the string parser to the 1*07*corrupt full helm

    Then use listGetAt$( "String Parser", to get the values/text. Replace X with the section of the string you want. For example if you want to get 07 then replace X with 2.

  5. #5
    No Products Registered

    Join Date
    Jun 2006
    Location
    Texas
    Posts
    1,002
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: help! how do strings work?

    First of all you need to download it:String Parser 2

    It comes with documentation that you can read to figure out how the object works .

  6. #6
    No Products Registered

    Join Date
    Sep 2006
    Location
    Greece
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: help! how do strings work?

    thanks people, you're the best

Similar Threads

  1. Compare Input Dialog with different Strings dont work for me
    By StingRay in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 30th March 2012, 12:47 PM
  2. Scan Global Strings and Other strings
    By Ausomeman in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 19th May 2010, 04:01 PM
  3. Strings Again
    By RickyRombo in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 10th July 2009, 06:31 PM
  4. Using Global Strings embedded in larger strings
    By Mudstick in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 12th May 2008, 01:23 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
  •