Manipulatin String variables via Setval in VEnApps

Use this forum to post Vensim related questions.
Post Reply
space56
Member
Posts: 22
Joined: Wed Feb 02, 2005 4:36 am

Manipulatin String variables via Setval in VEnApps

Post by space56 »

Hey Everybody,

I have a VenApp, where you can save data via .cin files, which may include strings. The problem now is that i would like to reset the string upon loading a file which doesn't have a value for the string included. Unlike the numerical value it doesn't reset the string. I wanted to reset the string via SETVAL now but this doesn't seem to work either. Maybe i am missing some " or '. I am not sure how to work it out. Does anybody have any ideas?

Best regards
Tobi
bob@vensim.com
Senior Member
Posts: 1107
Joined: Wed Mar 12, 2003 2:46 pm

Post by bob@vensim.com »

Hi Toby

SIMULATE>READCIN|

should reset all constants, lookups and string variables to the model defined values (note that you need 5.5d as this was not working in earlier versions).

You can set a string using SIMULATE>SEVAL|stringvar:IS:value - don't need the '' but there is no command to reset constants or stringvars to the model values for a single variable.
Post Reply