Announcement

Collapse
No announcement yet.

Auto save after application closes

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Auto save after application closes

    Hi
    i have build a software .. the problem is when I close it and run it again all the previous data's are gone ..what is the script that saves all the previous inputs, combobox and others?

  • #2
    Hi al7abob , what comes to my mind as a quick solution is to put a function on exit button to save your inputs in Text files, CSV files, XML files and recall saved data from them on the startup of your app.

    I think experts here can help you with an advanced solution, maybe saving in temp files or something.

    Comment


    • #3
      Yes something like this

      Comment


      • #4
        Up for solution 😭

        Comment


        • #5
          the solutions is already given by @sameer valva

          Comment


          • #6
            Yup but I don't know the codes

            Comment


            • #7
              It would be more helpful if an example is given

              Comment


              • #8
                It's a good idea to at least attempt helping yourself, first. Else you'll just have more questions. That being said, here's the basic concept. This example demonstrates one approach for reloading Input data.

                Before asking for more help, wrap your head around the example first. Then apply the same concept for any other objects that accept user input.
                Attached Files

                Comment


                • #9
                  Neat and Clean As always, Miss u BioHazard

                  Comment


                  • #10
                    I have several small items I use this method with out all the messy files floating around.

                    On Close
                    Code:
                    result = Input.GetText("Input1");
                    Application.SaveValue("Your_Application_Name", "Your_Key", result);
                    I use what the key is for as my application name... The key is what ever you want to call it.

                    Then On Preload or On Startup
                    Code:
                    result = Application.LoadValue("Your_Application_Name", "Your_Key"); - On Startup would make it Global and I would not suggest using "result"  
                    Input.SetText("Input1", result); -- If you run the top On Startup then add this On Preload or run the two On Preload

                    Comment


                    • #11
                      Worked.. Thanks All

                      Comment

                      Working...
                      X