Private Sub Text1_Change() a% = Val(Text1.Text) Text2.Text = Dec2Bin(a%)
a% = Val(Text1.Text) Text3.Text = Hex(a%) End Sub Public Function Dec2Bin(a As Integer) As String tmp = "" Do tmp = (a Mod 2) & tmp If a < 2 Then Exit Do a = a \ 2 Loop Dec2Bin = tmp End Function