2009年2月27日 星期五

數字轉國字大寫

image

Public Class Form1
    Dim i
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim r1 = "0123456789"
        Dim r2 = "零壹貳参肆伍陸柒捌玖"
        Dim d = "571683"
        Dim s = d
        For i = 1 To 10
            s = Replace(s, Mid(r1, i, 1), Mid(r2, i, 1))
        Next
        MsgBox(s)
    End Sub
End Class

沒有留言:

張貼留言