Page 1 of 1
How to access subscripts control dialog in VenApp?
Posted: Fri Jan 02, 2009 10:04 pm
by newbie
Hi,
I am trying to build a VenApp where the user can update the range for one of the subscripts. How can I do this?
Thanks,
Posted: Sat Jan 03, 2009 12:53 pm
by bob@vensim.com
use the SPECIAL>SUBSCRIPT command.
Posted: Mon Jan 05, 2009 5:40 pm
by newbie
I have tried using that but it doesn't work.
Posted: Tue Jan 06, 2009 3:04 pm
by bob@vensim.com
There is indeed a problem with the SPECIAL>SUBSCRIPT command. This will be fixed in the next release which should be Jan 16 or so.
Posted: Tue Mar 03, 2009 8:03 pm
by newbie
Hi Bob,
Just wanted to get an update from you regarding this fix as you had mentioned earlier. I have downloaded the last release 5.8d, but the issue still exists. Could you please check and let me know.
Thanks.
Posted: Wed Mar 04, 2009 12:19 pm
by bob@vensim.com
I just tried this and it seems to be working fine in 5.8d. The format for the command is
BUTTON,"Set Subscripts",34,43,8,3,,,SPECIAL>SUBSCRIPT|?,
to bring up a list of all subscripts of
BUTTON,"Set Subscripts",34,43,8,3,,,SPECIAL>SUBSCRIPT|Firm|?,
to select which firm (assuming Firm is a subscript range).
Posted: Wed Mar 04, 2009 7:42 pm
by newbie
Hi Bob,
Thanks for the update. I tried this command and it works fine and brings up the Projects subscript window.
string strVensimCommand = "SPECIAL>SUBSCRIPT|PROJECTS|?,";
Now, if I want to set the value of the subscript PROJECTS then how can I do that?
In the model, Projects is defined with this equation: (project1-project5).
I want to be able to change this equation for Projects dynamically from code. so, if I want to set the equation to (project1-project10) I should be able to do that.
Thanks.
Posted: Thu Mar 05, 2009 11:55 am
by bob@vensim.com
This is just
SPECIAL>SUBSCRIPT|PROJECTS|Project4
etc.