G
Guest
I want to convert Hexadecimal or normal integer to Binary. Does VB.Net has function to do that? I only found Hex function that convert normal integer to Hexadecimal.
function to do that? I only found Hex function that convert normal integerMrKrich said:I want to convert Hexadecimal or normal integer to Binary. Does VB.Net has
* "=?Utf-8?B?TXJLcmljaA==?= said:I want to convert Hexadecimal or normal integer to Binary. Does VB.Net
has function to do that? I only found Hex function that convert normal
integer to Hexadecimal.
from >>= 1from \= 2
has function to do that? I only found Hex function that convert normalJason L James said:Try is code. Is takes the text from TextBox1
and converts it into a string of 1's and 0's that
represent the binary code of the number.
Dim from As Int32
If IsNumeric(TextBox1.Text) Then
from = TextBox1.Text
Dim n As Int16
Do
n = from Mod 2
TextBox2.Text = n & TextBox2.Text
from \= 2
Loop Until from = 0
End If
Hope this helps.
Jason.