Please enable JavaScript to view this site.

Vensim Help

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

SPECIAL|ALIASSCREEN|aliasname|screenname

Scroll Prev Top Next More

Creates an alias that can be used in the shift to screen of a control.  This is very useful for specifying a return screen that depends on the history of how the screen was arrived at.  Consider for example the three screens:

:SCREEN SCENARIO

COMMAND,"",0,0,0,0,,,SPECIAL>ALIASSCREEN|SETUP|SCENARIO

BUTTON,"Help",50,50,0,0,,,,HELP

:SCREEN GAME

COMMAND,"",0,0,0,0,,,SPECIAL>ALIASSCREEN|SETUP|HELP

BUTTON,"Help",50,50,0,0,,,,HELP

:SCREEN HELP

BUTTON,"Return to Setup",50,50,0,0,,,,SETUP

In this case pressing the "Return to Setup" button will return you to the screen you came from.  You can use ALIASSCREEN as many times as you like.  Each use of ALIASSCREEN with the same aliasname  will simply replace the old value.

If you specify a value for screenname that does not exist an error will be issued when you attempt to shift to aliasscreen.