Extracting strings from a model with the Vensim DLL
Posted: Mon Feb 20, 2017 4:00 pm
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.
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.