Your Universal Remote Control Center
RemoteCentral.com
Crestron Control Systems Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 2 made on Monday March 19, 2012 at 15:36
total control
Lurking Member
Joined:
Posts:
March 2012
2
that is logically correct, or you can processes all the do somethings together.

if (mid(OpRx_$,1,4) = B))
{
do something1;
}
else if (mid(OpRx_$,1,5) = C))
{
do something2;
}

else if(mid(OpRx_$,1,4) = E))
{
do something3;
}
else if (mid(OpRx_$,1,5) = F))
{
do something4;
}

when ever OpRx_$ changes , a new thread will start processing, and it will do the appropriate something.
you might want to prevent reentry if that is a problem for your do something functions. i cant say without knowing what they do.


Hosting Services by ipHouse