How to access subscripts control dialog in VenApp?

Use this forum to post Vensim related questions.
Post Reply
newbie
Junior Member
Posts: 15
Joined: Tue Aug 19, 2008 4:23 pm

How to access subscripts control dialog in VenApp?

Post 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,
bob@vensim.com
Senior Member
Posts: 1107
Joined: Wed Mar 12, 2003 2:46 pm

Post by bob@vensim.com »

use the SPECIAL>SUBSCRIPT command.
newbie
Junior Member
Posts: 15
Joined: Tue Aug 19, 2008 4:23 pm

Post by newbie »

I have tried using that but it doesn't work.
bob@vensim.com
Senior Member
Posts: 1107
Joined: Wed Mar 12, 2003 2:46 pm

Post 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.
newbie
Junior Member
Posts: 15
Joined: Tue Aug 19, 2008 4:23 pm

Post 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.
bob@vensim.com
Senior Member
Posts: 1107
Joined: Wed Mar 12, 2003 2:46 pm

Post 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).
newbie
Junior Member
Posts: 15
Joined: Tue Aug 19, 2008 4:23 pm

Post 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.
bob@vensim.com
Senior Member
Posts: 1107
Joined: Wed Mar 12, 2003 2:46 pm

Post by bob@vensim.com »

This is just

SPECIAL>SUBSCRIPT|PROJECTS|Project4

etc.
Post Reply