• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 將阿拉伯數字轉成中文字

    發表于:2007-05-25來源:作者:點擊數: 標簽:文字阿拉伯數字轉成PrivateFunction
    Private Function CChinese(StrEng As String) As String If Not IsNumeric(StrEng) Or StrEng Like "*.*" Or StrEng Like "*-*" Then If Trim(StrEng) "" Then MsgBox "無效的數字" CChinese = "": Exit Function End If Dim intLen As Integer, intCounter
    Private Function CChinese(StrEng As String) As String
    If Not IsNumeric(StrEng) Or StrEng Like "*.*" Or StrEng Like "*-*" Then
    If Trim(StrEng) <> "" Then MsgBox "無效的數字"
    CChinese = "": Exit Function
    End If
    Dim intLen As Integer, intCounter As Integer
    Dim strCh As String, strTempCh As String
    Dim strSeqCh1 As String, strSeqCh2 As String
    Dim strEng2Ch As String
    strEng2Ch = "零壹貳叁肆伍陸柒捌玖"
    strSeqCh1 = " 拾佰仟 拾佰仟 拾佰仟 拾佰仟"
    strSeqCh2 = " 萬億兆"
    StrEng = CStr(CDec(StrEng))
    intLen = Len(StrEng)
    For intCounter = 1 To intLen
    strTempCh = Mid(strEng2Ch, Val(Mid(StrEng, intCounter, 1)) + 1, 1)
    If strTempCh = "零" And intLen <> 1 Then
    If Mid(StrEng, intCounter + 1, 1) = "0" Or (intLen - intCounter + 1) Mod 4 = 1 Then
    strTempCh = ""
    End If
    Else
    strTempCh = strTempCh & Trim(Mid(strSeqCh1, intLen - intCounter + 1, 1))
    End If
    If (intLen - intCounter + 1) Mod 4 = 1 Then
    strTempCh = strTempCh & Mid(strSeqCh2, (intLen - intCounter + 1) \ 4 + 1, 1)
    If intCounter > 3 Then
    If Mid(StrEng, intCounter - 3, 4) = "0000" Then strTempCh = Left(strTempCh, Len(strTempCh) - 1)
    End If
    End If
    strCh = strCh & Trim(strTempCh)
    Next
    CChinese = strCh
    End Function

    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>