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

Login:
Pass:
 
 

Original thread:
Post 1 made on Wednesday January 14, 2009 at 11:40
pthornhill
Long Time Member
Joined:
Posts:
June 2008
53
I' trying the following code to catch instance when the extender is not available - however "ext1 == null" is never true even when there's no network connection or no extender on the network.

var ext1 = CF.extender[1];
if (ext1 == null)
{System.print("couldnt get the extender");}
else
{rest of code assuming extender is available}

What's the best way to catch instance where extender is not available, so you don't execute any further code which will error when extender doesn't respond?


Hosting Services by ipHouse