如果要输出8位的二进制数
dim a as type, b as string
if a and 128 then b = "1" else b= "0"
if a and 64 then b =b & "1" else b= b & "0"
if a and 32 then b =b & "1" else b= b & "0"
if a and 16 then b =b & "1" else b= b & "0"
if a and 8 then b =b & "1" else b= b & "0"
if a and 4 then b =b & "1" else b= b & "0"
if a and 2 then b =b & "1" else b= b & "0"
if a and 1 then b =b & "1" else b= b & "0"