reset a Slidevar

Use this forum to post Vensim related questions.
Post Reply
apix
Senior Member
Posts: 64
Joined: Wed Mar 16, 2011 3:31 pm

reset a Slidevar

Post by apix »

Good morning!!

I can't get slidevars to be reset.
I used the command SPECIAL>RESETINPUT|, even in combination with SPECIAL>REFRESH, but with no success.
The radiovars and the switchvars get rigthly reset instead.

Any suggestion? Thank you :-)
Administrator
Super Administrator
Posts: 4841
Joined: Wed Mar 05, 2003 3:10 am

Re: reset a Slidevar

Post by Administrator »

Can you post the screen you are using? That command should reset everything.
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
apix
Senior Member
Posts: 64
Joined: Wed Mar 16, 2011 3:31 pm

Re: reset a Slidevar

Post by apix »

I'm working with Vensim DSS 5.11A-1 and Windows 7
Th code looks like this:

Code: Select all

:SCREEN POLICY1
SCREENFONT,Arial|10||0-0-0|-1--1--1
PIXELPOS,0
SWITCHVAR,"Switch_1",32,17,,,,,"activate",
SLIDEVAR,"Year_1",32,22,10,4,H|Arial|7|B|0-0-0,%L[2013|2050|1]||7,"",
BUTTON,"RESET",77,95,13,4,|Arial|9||0-0-0,,"SPECIAL>RESETINPUT|&SPECIAL>REFRESH",
Administrator
Super Administrator
Posts: 4841
Joined: Wed Mar 05, 2003 3:10 am

Re: reset a Slidevar

Post by Administrator »

This is a little confusing. RESETINPUT does not actually reset any model values, all it does is read the current settings in the model and loads them into the user interface.

Are you trying to use this before a simulation/game starts?
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
apix
Senior Member
Posts: 64
Joined: Wed Mar 16, 2011 3:31 pm

Re: reset a Slidevar

Post by apix »

Well, the venapp allows to set up one or more policies.
Every policy has an own screen with several slidevars, switchvars, radiovars and so on.

Thus, I use CANCEL> to cancel the entire simulation, while RESETINPUT to cancel just the changes to the variables in the current screen (relative to one policy), keeping in memory the settings done for the other policies.

When I enter the screen for a policy, the switchvars / slodevars rightly read the values from the model.
Then I change them, as I would set up my scenario.
If I want to restart, I press RESET (with the command RESETINPUT): but not all variables take their initial values, in particular the slidevars.
Post Reply