binary = substr( ;
"0000000100100011010001010110011110001001101010111100110111101111", ;
4*eval( "0x" + hex_character) + 1, 4)
If you want to convert something like "0x4AF15" simply convert the five digits individually and concatenate the result.
Thanks for the opportunity to redeem myself ;-)
Alex
>I'm watching this thread in hope it will get me out of my box...
>What I need, is to translate an asc() value 0 - 255, into a 'binary' string, i.e. asc('A') to be translated into '01000001'. We have a little UDF that does it, but I wonder if there is a more elegant solution.
>
>dzLow-carb diet not working? Try the Low-food diet instead!