Page 1 of 1

problem using Edit Box

Posted: Mon Feb 14, 2011 10:01 am
by Huegel
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?!

Re: problem using Edit Box

Posted: Mon Feb 14, 2011 11:33 am
by Administrator
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