Hi, i want to convert decimal numbers to binary numbers.
this code here is working, only I dont understand it really... can sb explain
what this code does exactally?
and 2de question, I just can't find a code wich converts binary to decimal![]()
sb knows a code for it???
Code:Dim Number As Integer Dim Binary_String As String Number = Val(Text1.Text) Binary_String = "" While Number > 0 Binary_String = Str(Number Mod 2) & Binary_String Number = Number \ 2 Wend Text2.Text = Binary_String




Reply With Quote