silogarrett Posted October 8, 2010 Share Posted October 8, 2010 Hello GURU! Is it possible to send 'throw' information to a screen component, such as a variable value, or an LED component? Example: if (data == 0) throw("There is no data") endif So that I can see the message "There is no data" on my screen? Mike Link to comment Share on other sites More sharing options...
AzeoTech Posted October 11, 2010 Share Posted October 11, 2010 Not directly. You could create a string Test channel to hold these messages and then use a table or variable value component to display it. Or if its just one thing, you can use a descriptive text component with an expression of data == 0 and a blank string for 0 and "There is no data" for 1. Really there are lots of ways to do this sort of thing, so the question for you is, what do you want it to do? Link to comment Share on other sites More sharing options...
silogarrett Posted October 11, 2010 Author Share Posted October 11, 2010 I think I understand. if (there's a problem) MyInfoChannel.addvalue("Problem!") endif Will do the trick. Link to comment Share on other sites More sharing options...
BeeHay Posted October 12, 2010 Share Posted October 12, 2010 Would an inline if solve this issue? Just brainstorming. Oh, sorry to jump off subject, but the latest newsletter looks interesting! Dot matrix printing and DF training?! Maybe I can get my boss to ship me up to Oregon. Link to comment Share on other sites More sharing options...
AzeoTech Posted October 12, 2010 Share Posted October 12, 2010 No, because, persumably, we want to build up a list of various alerts. However, yes, if you just wanted to display some text if a data == 0, you could do: iif(data == 0, "There's a problem!", ""), or you could use a descriptive text component, or you could use the visibility parameter of a variable value or descriptive text component, or, or... etc. There are lots of possible solutions depending on what the end goal is. That's why I often recommend when asking questions to specify what your goal is, rather than ask about some specific syntax or algorithm. Link to comment Share on other sites More sharing options...
AzeoTech Posted October 12, 2010 Share Posted October 12, 2010 Oh, and if you're in Sacramento, then you are just down the road from us. A 5 hour drive at most. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.