Monitoring Variables in ini files?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Lazerpower
    Indigo Rose Customer
    • Nov 2001
    • 33

    Monitoring Variables in ini files?

    Hello all,
    I have about 45 different variables I am currently using with a program I am making.

    Does anyone know a way to monitor all the variables in a .ini file?

    I tried to write all of the variables to an .ini file when the program starts up, but the data will not update mid program after refeshing the view.

    Any ideas or easier solutions?

    Thanks,

    ------------------
  • tbybee
    Indigo Rose Customer
    • Jul 2000
    • 100

    #2
    Re: Monitoring Variables in ini files?

    Could you switch pages? If you create another page that's a duplicate of the one you're working on, then you could switch, seamlessly to another page. Upon the new page opening, then the reference to the .ini file should be updated.

    I'll give it a try too and see if it works.

    Tonny

    Comment

    • Lazerpower
      Indigo Rose Customer
      • Nov 2001
      • 33

      #3
      Re: Monitoring Variables in ini files?

      Thanks for the advice Tony,

      That may work, but I have 12 pages with some of the 45 variables on each page. With your idea, would I have to make 12 duplicate pages for it to work?

      Watcha think?
      Tom

      Comment

      • Lazerpower
        Indigo Rose Customer
        • Nov 2001
        • 33

        #4
        Re: Monitoring Variables in ini files?

        Hello all,

        Anybody have any other ideas to make the above work?

        I think it would be much eaiser to troubleshoot my program if I can continually view the variables.

        Thanks,
        Tom

        Comment

        • Mark
          Indigo Rose Staff Member
          • Jun 2000
          • 1945

          #5
          Re: Monitoring Variables in ini files?

          Hi,

          I am slightly confused as to what you want to do. Do you want to write your variables into an INI file? Or do you want the variables that you have displayed on your screen to mimic the values found in an INI file?

          mark.
          MSI Factory The Next Generation Intelligent Setup Builder

          Comment

          • Lazerpower
            Indigo Rose Customer
            • Nov 2001
            • 33

            #6
            Re: Monitoring Variables in ini files?

            Hi Mark,

            Thanks for replying.

            Ok, I want to write all of my variables to an ini file and monitor the status of each variable.

            As you know if I have 20 different yes/no variables they will not all contain the same information, some will be yes, some no.

            I would like to write all of the variables in my program to an ini file at project/settings/action/startup. This is not a problem. But as screens change or buttons pressed, the data in each variable will change.

            I would like the variables in the ini file to constantly update the data in them.

            This way when I am creating a program with alot of variables and I am having a problem, I can see what each variable data is at the time of the problem to troubleshoot.

            I hope this makes more sense!

            Thanks much,
            Tom

            Comment

            • Lazerpower
              Indigo Rose Customer
              • Nov 2001
              • 33

              #7
              Re: Monitoring Variables in ini files?

              Mark,
              Have you come up with any ideas that might allow this to work?

              Thanks again for the help!
              Tom

              Comment

              • tbybee
                Indigo Rose Customer
                • Jul 2000
                • 100

                #8
                Re: Monitoring Variables in ini files?

                Something else I have incorporated in the past when I want to update pages is to go to a blank page. The action of the blank page upon opening is to go to previous. This allows me to have one additional page, not several duplicate pages as I suggested in an earlier post. So, it doesn't matter which of your 12 pages refers to the blank because it'll always return you to the previous page therefore refreshing your variables.

                Hope I'm understanding the problem. If not, please try to clarify.

                Thanks,

                Tony

                [This message has been edited by tbybee (edited 02-22-2002).]

                Comment

                • Lazerpower
                  Indigo Rose Customer
                  • Nov 2001
                  • 33

                  #9
                  Re: Monitoring Variables in ini files?

                  Thanks for the info Tony,
                  Let me see if I understand what your saying correctly.
                  Let's say I have 5 buttons(links) on a page and each button writes different information to the same .ini file. Would I want to put a jump to the blank page on each button? Or would I jump after every write to the .ini file that is in that button?

                  Thanks for your help,
                  Tom

                  Comment

                  Working...
                  X