By the way comEvCTS only returns a change in the CTS line. It can't tell you if it's high or low, which is why I didn't use it in the top example.
If you want to use comEvCTS you can write it this way but it's not as reliable or clean as my first example.
"So much to learn. So little time to do it. Wise men know it's later than one thinks"!
<Vote here to make Keith a Moderator>
Mark's Syntax.Zip
I don't answer programming questions via PMs. That's what the forum is for!