Hello,
I'm running a Vensim model online using the Vensim DLL. The model runs in GAME mode. As users progress through the model, I want to present them with messages at various points, triggered by their actions. Is there a way that the DLL can extract string values from variables in the model (I'm hoping it's obvious and I'm just not seeing it!). For example, if I have a variable called 'Price' which contains, 'IF THEN ELSE(Price>1100:OR:Price<900, MESSAGE ('Price is outside permitted range',5), 0)' then in Vensim I correctly receive the message if I enter a price below $900 or above $1,100, but I can't find a way to do this via the DLL.
Extracting strings from a model with the Vensim DLL
Re: Extracting strings from a model with the Vensim DLL
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Re: Extracting strings from a model with the Vensim DLL
Thanks for replying, Tom, but I'm not sure I understand. I don't have any problem with the message strings in Vensim 6.4E DSS; it's using the Vensim DLL where we're having trouble extracting the string values. Do you mean that there is now a new version of the DLL that has a function to retrieve string variables?