User Tag List

Results 1 to 5 of 5

Thread: Problem with INI

  1. #1
    No Products Registered

    Join Date
    Feb 2008
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problem with INI

    Hi guys, I have this problem.
    How can I tell the program to save a value in a group named like a paragraph in a string object created for that porpouse?
    I need to Set group to (text of a paragraph of a string object) but when I try with that command, it ask me to put in a value but I don't understand what it means.
    I tried put random values in it but it just says "syntax error" so I don't really know what to do

    If this isn't clear, I'll try to explain it in details...

    I have an INI file with 10 groups, named...
    [GROUP1]
    [GROUP2]
    [GROUP3]
    [GROUP4]
    ecc...

    There are different items in these groups but each group has one item in common... let's call it "Status".

    [GROUP1]
    Status=0
    [GROUP2]
    Status=0
    [GROUP3]
    Status=0
    [GROUP4]
    Status=0
    ecc....

    I also have one string object with 10 paragraphs.
    The text in each paragraph is just the name of the groups in my INI file.
    String Object
    Paragraph1 = Group1
    Paragraph2 = Group2
    Paragraph3 = Group3
    Paragraph4 = Group4
    ecc....

    Now my problem is...
    I need to save a value in the "status" item of one group.
    The string object is always displaying the name of the active group.
    So, if "Group1" paragraph is displayed, I need to save the value in group [Group1] item "status".
    If "Group2" paragraph is displayed, I need to save the value in group [Group2] item "status".

    So, to make long story short, when I save the value I need to do :
    Set group to (text of a paragraph of the string object)
    Set item to "status"
    Set value to 5 <--- random number, who cares?

    The problem is that I don't know how to set the group that way.
    I know there is a funcion in the expression editor that retrieve the text of a paragraph of a string object, but I tryed for a whole hour without understand which values to use.

    Hope someone can help me.
    Thank you in advance!!

  2. #2
    Clicker Multimedia Fusion 2
    SEELE's Avatar
    Join Date
    Jul 2007
    Location
    Terra australis incognito
    Posts
    1,916
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem with INI

    It's called Alterable string and it looks like; string$( "String" )

  3. #3
    No Products Registered

    Join Date
    Feb 2008
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem with INI

    Thank you for the answer but I don't understand
    what means string$ ("String") ?
    In my example I gave a name to everything.
    Can you show me how that code would apply to my situation?
    Hope to not bother you.
    Thanks!

  4. #4
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem with INI

    string$( "String" ) will retreive the current text displayed by a string object called "String". You rename this to whatever you want.

    Im confused though, do you want to save a string TO the INI file, or transfer FROm the INi file into a string object?

  5. #5
    No Products Registered

    Join Date
    Feb 2008
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem with INI

    Thank you guys.
    I menaged to do it.
    I was trying to save from string to INI... the only thing I was missing in the formula was the number of the paragraph of the string object I wanted to save.

    Just to clarify... the command was this :
    Set group to (paragraph$( "StringObjectName", ParagraphNumber)

    Thank you for your help

Similar Threads

  1. Pulling Problem and Shooting Problem
    By Duggabboo in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 21st March 2010, 05:24 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
  •