Extracting strings from a model with the Vensim DLL

Use this forum to post Vensim related questions.
Post Reply
Phill
Senior Member
Posts: 156
Joined: Wed Jun 04, 2014 2:18 pm
Vensim version: DSS

Extracting strings from a model with the Vensim DLL

Post by Phill »

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.
Phill
Senior Member
Posts: 156
Joined: Wed Jun 04, 2014 2:18 pm
Vensim version: DSS

Re: Extracting strings from a model with the Vensim DLL

Post by Phill »

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?
Post Reply