I am new to sable and have Problems while using edit boxes for variations of parameters: I use the edit box > set parameter mode and run the simulation by a Button SIMULATION> RUN. Results of the simulation are fine, but after the simulation has finished the values printed in the edit box jump to those ones of the Current-file of the Vensim Modell even if I publish the vensim Model without the current-run.
I expect the edit box to contain the value I typed in until I change the value actively. what do I have to change?
kind regards
Katrin
I found some kind of solution: when I change the var type to "Vensim String" it seem's to work?!
problem using Edit Box
Moderator: Administrator
-
- Super Administrator
- Posts: 4827
- Joined: Wed Mar 05, 2003 3:10 am
Re: problem using Edit Box
This operates in exactly the same way as Vensim does (once the sim is over, everything resets).
What you need to do is write the values before the sim starts and then load them back in once it's over.
Something like the following commands on a button.
SIMULATE>WRITECIN|temp.cin
<Run the model here>
SIMULATE>READCIN|temp.cin
What you need to do is write the values before the sim starts and then load them back in once it's over.
Something like the following commands on a button.
SIMULATE>WRITECIN|temp.cin
<Run the model here>
SIMULATE>READCIN|temp.cin
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559