as in "is there a built in function?" not to my knoweledge. There is a hex() function though.

Just write you're own.

you have to decide on what output you want... do you want a string? do you want to be able to work with int's and longs too? do you need arrays?

The functions I write are usually to convert an array of bytes (which anything is convertable into) to an array of bits (held in a byte array 8 time longer)

If you just need to view single bytes, use strings. if you have to work with them (like when I wrote a vb dll for DES encrytpion) you need something more flexable (bit arrays)

In your function you can either use division by ^2 in a loop to find the 1's and 0's or you can AND a number with 1,2,4,8,16,32,64,128 and get the output.

If there is a better way I too would LOVE to hear about it

Paul