strBin

Convert a value into an ASCII string in binary format.

Syntax: strBin(value, string)

value Required. The value to convert
string Required. The String to place the result in

 Example:

StrBin(12,s)      ' s="00001100"
StrBin(1025,s)    ' s="0000010000000001"

StrBin(1234567,s) ' s="000100101101011010000111"

Also See: str, strFixed, strHex, Val