Announcement

Collapse
No announcement yet.

Reload but keep old Vars ?!

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

  • Reload but keep old Vars ?!

    Hi i have got a question i am planing a studie based on renko... but renko isnt good if you not reload (its so on my pc)

    so i thought is there a way to reload and keep your old vars ( especially vlastalert...) because else its flooding alerts all the time...

    regards erilein

  • #2
    Erlein:

    Not sure that I fully understand your question but, yes, the reloadEFS() function is designed to do just that. It will essentially reload the script but it will preserve the value of any external variables (e.g., variables declared outside of any function) and preMain() will not be called.

    Chris

    Comment


    • #3
      ok thats great thank you i think this will help me...

      regards erilein

      Comment


      • #4
        Hi Chris,

        I have a related question.
        I made my first buttons, using some of your scripts as template.
        I made it work (plays a sound when ckicked on), but can't make it do anything else.

        I am trying to modify the plots based on Button action, rather than changing input paramters, like I have it now (and it is working fine). For example, display or not a 20ma.

        I tried to reloadEFS(), still nothing.

        Is there a reasonable way to do it?

        Thank you.
        Mihai
        Mihai Buta

        Comment


        • #5
          Never mind previous question, I found the problem and the solution for this particular case.
          If I run in other problems, i come back.

          Thanks.
          Mihai Buta

          Comment

          Working...
          X