Page 1 of 1
reset a Slidevar
Posted: Mon Sep 23, 2013 9:19 am
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

Re: reset a Slidevar
Posted: Mon Sep 23, 2013 10:14 am
by Administrator
Can you post the screen you are using? That command should reset everything.
Re: reset a Slidevar
Posted: Mon Sep 23, 2013 1:33 pm
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",
Re: reset a Slidevar
Posted: Mon Sep 23, 2013 3:00 pm
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?
Re: reset a Slidevar
Posted: Tue Sep 24, 2013 1:38 pm
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.