BIN$
(Function)
Converts the value of an expression to a binary character string.
BIN$ (<Expression>)
This statement converts the value designated in <Expression> to a binary form and converts the value to a character string.
DIM li1 As Integer
|
|
DEFSTR ls1, ls2
|
|
ls1 = BIN$(20)
|
'Converts 20 to a binary form and assigns it to ls1.
|
ls2 = BIN$(li1)
|
'Converts li1 to a binary form and assigns it to ls2.
|