Please enable JavaScript to view this site.

Vensim Help

Navigation: Reference Guide > DSS Supplement > Venapps > Command Descriptions > SPECIAL

SPECIAL>SUBSCRIPT|range|elem1|elem2

Scroll Prev Top Next More

Allows you to control the selection of Subscripts from within a Venapp.  range should name a subscript range and should be followed by zero or more element names for that range.  You can also follow the range by a subrange or the range itself to select all elements in the subrange.  If you want to add to the set of selected subscripts instead of replacing it use + instead of the subscript range name.  

Examples 

(Sub: (S1-S5) ~ ~ | ):

Button,"The third element",20,10,30,0,C,,SPECIAL>SUBSCRIPT|SUB|S3

Button,"All elements",20,20,30,0,C,,SPECIAL>SUBSCRIPT|SUB|SUB

Button,"No elements",20,30,30,0,C,,SPECIAL>SUBSCRIPT|SUB|

Button,"one and four",40,30,30,0,C,,SPECIAL>SUBSCRIPT|SUB|s1|s4

Button,"add 5 to selected",40,50,30,0,C,,SPECIAL>SUBSCRIPT|+s5

You can also use a ? in place of the Subscript element to bring up a Popup version of the subscript control dialog.  This dialog will not be a tabbed dialog, but only a dialog for the subscript you choose.

Button,"query",40,60,30,0,C,,SPECIAL>SUBSCRIPT|sub|?

Finally you can use a ? in place of the Subscript Range name.  This will bring up a list of the available Subscript ranges.  Selecting one of these will then bring up the Popup form of the Subscript Control for that subscript.  This feature is used in the Vensim Model Reader.