Private Sub Command1_Click()
Me.Font.Size = 30Dim a As Integer, b As Byte
Dim s As String
Dim yushu As Byte
a = 1230
b = 16
While a <> 0
yushu = a Mod b
s = f(yushu) & s
a = a \ b
Wend
Print s
End Sub
Private Function f(yushu As Byte) As String
If yushu <= 9 Then
f = yushu
Else
f = Chr(55 + yushu)
End If
End Function