Page 1 of 1
MESSAGE
Posted: Tue Feb 08, 2005 5:11 pm
by rolando
Hi,
I'm using the MESSAGE function to give some warns when a variable gets a specific value.
the question is: where I can display the scrolling list of warnings, because it doesn't appear.
Posted: Wed Feb 09, 2005 11:17 am
by bob@vensim.com
If you call message with a warning value (1) then you need to have warning set to display - otherwise nothing will appear. Go to Tools>Options>Settings and set warnings to display.
MESSAGE
Posted: Thu Feb 10, 2005 1:44 pm
by rolando
Hi,
I check in Tools>Options, and the option is check in Display. But it doesn´t work.
This is the way I'm calling it:
if then else (P1<0, MESSAGE('Need 1',1) , MESSAGE('Need 0',1))
if I use another option in the display parameter, everything works fine, except in the option 1.
Thank's
[Edited on 2-10-2005 by rolando]
Posted: Thu Feb 10, 2005 4:04 pm
by bob@vensim.com
I just tried and it works fine for me. Make sure you are using 5.4b.
How can I....
Posted: Tue Mar 01, 2005 5:09 pm
by rolando
Hi,
Thank's for the last post, it help's.
Now the MESSAGE is working fine with the display option 1. But now, I just want to know if I can display the value of a variable in the list of warnings. For example:
WARNING: the process 5 is not working
but in other run, the process 5 is working fine, but the process 6 not, so I need to display.
WARNING: the process 6 is not working.
thank's.
Posted: Tue Mar 01, 2005 11:47 pm
by bob@vensim.com
just surround the variable with the value in \/ as in 'The time is \Time/'
Thank's
Posted: Thu Mar 03, 2005 1:21 pm
by rolando
Thank's.