bin$ = BinStr(val[, length])
val
into binary format
(base 2) and returns it as a string. The optional argument length
allows you to specify how many bits shall be put into the string. This
can be #INTEGER
for 32 bits, #SHORT
for 16 bits, and #BYTE
for 8 bits.
By default, #INTEGER
will be used.
#INTEGER
,
#SHORT
, or #BYTE
) (V3.0)val
a$ = BinStr(255, #BYTE)This returns the string "11111111".