problem using Edit Box

Use this forum to post Sable related questions.

Moderator: Administrator

Post Reply
Huegel
Junior Member
Posts: 2
Joined: Mon Feb 14, 2011 9:42 am

problem using Edit Box

Post 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?!
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: problem using Edit Box

Post 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
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
Post Reply