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 5 made on Tuesday August 10, 2010 at 03:25
buzz
Super Member
Joined:
Posts:
May 2003
4,380
var channelexclude = [30,52,100-200 ] ;


Results in a three element array with values 30, 52, -100

----

Edit:

I don't know what the project requirements might be, but I would be tempted to write includeChannel() and excludeChannel() functions that do all of the dirty work. These functions could be called as needed to give local context to channel navigation. These functions would also keep things neat and tidy for the programmer.

Syntax could be:

includeChannel( 23 );
excludeChannel( 23, 50, 225);
excludeChannel( 5, "10-20", 63, "200+");
includeChannel( sports, cartoons, shopping );  (each of these items is an array)


Note that ranges are quoted. This is required because a non quoted range will be executed as a simple calculation.

Last edited by buzz on August 10, 2010 22:59.


Hosting Services by ipHouse