Erm...I quite not really understand about the code..Can u pls explain it ?
thanks ya...
Well, since it's a function, you don't necessarily have to understand it. That's the beauty of a function - it can be used as a "black box" without worrying about the "innards".
It takes in a byte value, and returns the string of "0" and "1" indicating the binary value of the byte. Try passing values to it from the immediate window. For example...
Print Bin(38)
If this isn't what you were after, then please explain further.