There is no way to specify a binary literal. Standard is decimal and you can use &H and &O for hexadecimal and octal respectively. If you want to be able to specify a binary value you can only do this:The '2' specifies to convert from base 2.vb.net Code:
Dim int As Integer = Convert.ToInt32("10010110", 2)




Reply With Quote