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