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 18 made on Thursday July 26, 2007 at 21:52
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,999
To build a set of hexadecimal binary characters using the string method as you've done above, you shoud eval() the results of the concatenation.

eval('\\x' + '41'); Results in a hex bytecode value of 65 which is the character code for 'A'.

Note that the end result of the string concatenation of my above expression (what's inside the eval parens) is '\x41', which when evaluated using eval() will build character code 'A'.

The quick and dirty fix is to change your return .... concats containing all the double backslashes to:

return eval(... string concatenation result);
Lyndel McGee
Philips Pronto Addict/Beta Tester


Hosting Services by ipHouse