Author |
|
RWCS Senior Member
Joined: October 28 2002 Location: United States
Online Status: Offline Posts: 102
|
Posted: January 23 2009 at 08:51 | IP Logged
|
|
|
I'm attempting to detect COM errors. I know what the "correct" response should be, and I'm interested in flagging the non-correct responses. (one correct response many non-correct responses) I tried this:
if ({COM_RX} = "@SRC:1" ,, ph_msgbox ("COM ERROR", "COM ERROR", 0))
I can't determine if the problem is with the null true condition or the Boolean test condition. (couldn't find help on Boolean syntax in help)
Bob
|
Back to Top |
|
|
BeachBum Super User
Joined: April 11 2007 Location: United States
Online Status: Offline Posts: 1880
|
Posted: January 23 2009 at 09:57 | IP Logged
|
|
|
What about this:
if (ph_getglobal_s("COM_RX") = "@SRC:1" ,999, ph_msgbox ("COM ERROR", "COM ERROR", 0))
__________________ Pete - X10 Oldie
|
Back to Top |
|
|
RWCS Senior Member
Joined: October 28 2002 Location: United States
Online Status: Offline Posts: 102
|
Posted: January 23 2009 at 10:43 | IP Logged
|
|
|
Thanks for your suggestion. It works with ("{COM_RX}") instead of ("COM_RX")
Bob
|
Back to Top |
|
|
BeachBum Super User
Joined: April 11 2007 Location: United States
Online Status: Offline Posts: 1880
|
Posted: January 23 2009 at 10:50 | IP Logged
|
|
|
Half the time it works with brackets and the other not for me. So if brackets don’t work I use getglobal_s.
__________________ Pete - X10 Oldie
|
Back to Top |
|
|