OfficeÖйúÂÛ̳/AccessÖйúÂÛ̳

 ÕÒ»ØÃÜÂë
 ×¢²á

QQ怬

Ö»ÐèÒ»²½£¬¿ìËÙ¿ªÊ¼

12ÏÂÒ»Ò³
·µ»ØÁÐ±í ·¢ÐÂÌû
²é¿´: 5961|»Ø¸´: 14
´òÓ¡ ÉÏÒ»Ö÷Ìâ ÏÂÒ»Ö÷Ìâ

[ÆäËü] [Ô­´´]Êý×Ö½ð¶îת»»³ÉÖÐÎÄ´óд½ð¶îµÄº¯Êý

[¸´ÖÆÁ´½Ó]
Ìøתµ½Ö¸¶¨Â¥²ã
1#
·¢±íÓÚ 2005-11-27 21:19:00 | Ö»¿´¸Ã×÷Õß »ØÌû½±Àø |µ¹Ðòä¯ÀÀ |ÔĶÁģʽ
ÉÏ´«Ò»¸öÊý×Ö½ð¶îת»»³ÉÖÐÎÄ´óд½ð¶îµÄº¯Êý

Public Function MoneyConv(Money As Currency) As String
On Error GoTo Doerr

    Dim CN(9) As String
    Dim CU(15) As String
    Dim Temp As String, strNum As String
    Dim CM As String
    Dim tFirst As String, tEnd As String
    Dim i As Long, j As Long, k As Long   
    CN(0) = "Áã"
    CN(1) = "Ò¼"
    CN(2) = "·¡"
    CN(3) = "Èþ"
    CN(4) = "ËÁ"
    CN(5) = "Îé"
    CN(6) = "½"
    CN(7) = "Æâ"
    CN(8) = "°Æ"
    CN(9) = "¾Á"
   
'    CU(0) = "·Ö"
'    CU(1) = "½Ç"
    CU(0) = "Ô²"
    CU(1) = "Ê®"
    CU(2) = "°Û"
    CU(3) = "Ǫ"
    CU(4) = "Íò"
    CU(5) = "Ê®"
    CU(6) = "°Û"
    CU(7) = "Ǫ"
    CU(8) = "ÒÚ"
    CU(9) = "Ê®"
    CU(10) = "°Û"
    CU(11) = "Ǫ"
   
    If Money = 0 Then
        CM = "ÁãÔ²Õû"
        GoTo Complete
    End If
    strNum = Trim(str(FormatCurrency(Money, 2, vbTrue, vbFalse, vbFalse)))   
    If Left(strNum, 1) = "-" Then
        tFirst = "¸º"
        strNum = Right(strNum, Len(strNum) - 1)
    Else
        tFirst = ""
    End If
   
    i = InStrRev(strNum, ".")
    If i <> 0 Then
        Temp = Right(strNum, i)
        If Len(strNum) - i = 1 Then Temp = Temp + "0"
        CM = CN(CInt(Left(Right(Temp, 2), 1))) + "½Ç" + CN(CInt(Right(Temp, 1))) + "·Ö"
        tEnd = ""
        strNum = Left(strNum, i - 1)
    Else
        tEnd = "Õû"
    End If
   
    i = 0
    For j = Len(strNum) To 1 Step -1
        k = CInt(Right(Left(strNum, j), 1))
        If k = 0 Then
            If i <> 0 And i <> 4 And i <> 8 Then
                CM = CN(k) + CM
            Else
                CM = CN(k) + CU(i) + CM
            End If
        Else
            CM = CN(k) + CU(i) + CM
        End If
'        CM = CN(k) + CU(i) + CM
        i = i + 1
    Next j
   
    CM = tFirst + CM + tEnd
    CM = Replace(CM, "ÁãÁã", "Áã")
    CM = Replace(CM, "ÁãÁã", "Áã")
    CM = Replace(CM, "ÒÚÁãÍòÁãÔ²", "ÒÚÔ²")
    CM = Replace(CM, "ÒÚÁãÍò", "ÒÚÁã")
    CM = Replace(CM, "ÍòÁãÔ²", "ÍòÔ²")
    CM = Replace(CM, "ÁãÒÚ", "ÒÚ")
    CM = Replace(CM, "ÁãÍò", "Íò")
    CM = Replace(CM, "ÁãÔ²", "Ô²")
    CM = Replace(CM, "ÁãÁã", "Áã")
    CM = Replace(CM, "ÁãÁã", "Áã")        'Öظ´Ìæ»»Ò»´Î

Complete:
    Gerr = 0              '²Ù×÷³É¹¦,ÎÞ´íÎó·¢Éú
    MoneyConv = CM
    Exit Function   
Doerr:
    Gerr = -1              'δ֪´íÎó
Errexit:
    MoneyConv = ""
End Function[em07][em07]
·ÖÏíµ½:  QQºÃÓѺÍȺQQºÃÓѺÍȺ QQ¿Õ¼äQQ¿Õ¼ä ÌÚѶ΢²©ÌÚѶ΢²© ÌÚѶÅóÓÑÌÚѶÅóÓÑ
ÊÕ²ØÊÕ²Ø1 ·ÖÏí·ÖÏí ·ÖÏíÌÔÌû ¶©ÔĶ©ÔÄ
2#
·¢±íÓÚ 2006-11-11 07:11:00 | Ö»¿´¸Ã×÷Õß
¿ÉÊÇ,ÎÒÊDzËÄñ,ʵÔÚ²»ÖªµÀÔõôһ²½²½²Ù×÷ÄÇ?
3#
·¢±íÓÚ 2006-11-11 07:13:00 | Ö»¿´¸Ã×÷Õß
Ï£Íû´óÏÀÄÜÏêϸָµ¼Ò»ÏÂÔõô²Ù×÷,лл°¡!
4#
·¢±íÓÚ 2006-11-11 21:50:00 | Ö»¿´¸Ã×÷Õß
×öÒ»¸öʾÀý³öÀ´¾ÍºÃÁË
5#
·¢±íÓÚ 2006-11-11 22:00:00 | Ö»¿´¸Ã×÷Õß
Àý×ÓÔÚÕâÀÀïÃæÓÐÁ½¸ö²»Í¬µÄº¯Êý£¬Ð§¹ûÒ²²»Ò»Ñù

Â¥Ö÷µÄÊǵڶþ¸öÀý×Ó

±¾Ìû×ÓÖаüº¬¸ü¶à×ÊÔ´

ÄúÐèÒª µÇ¼ ²Å¿ÉÒÔÏÂÔØ»ò²é¿´£¬Ã»ÓÐÕʺţ¿×¢²á

x
6#
·¢±íÓÚ 2006-11-12 04:30:00 | Ö»¿´¸Ã×÷Õß
¾õµÃÕâÁ½¸öº¯Êý×öµÃ²»ÍêÃÀ£¬

10.1Ԫʱ£¬µÃ³öµÄÊÇҼʰԪҼ½ÇÁã·Ö£¬×îºÃ²»ÒªÌåÏÖÁã·Ö£¬Ö»ÒªÒ¼Ê°ÔªÒ¼½ÇÕû¾Í³É
7#
·¢±íÓÚ 2006-11-25 21:45:00 | Ö»¿´¸Ã×÷Õß
µç·çÉȵç·çÉȵç·çÉÈ
8#
·¢±íÓÚ 2007-7-14 17:05:00 | Ö»¿´¸Ã×÷Õß
555
9#
·¢±íÓÚ 2007-7-17 18:26:00 | Ö»¿´¸Ã×÷Õß
½ö¹©²Î¿¼

Public Function URmb(ByVal Money As Currency) As String
'Ò»¸ö¼òµ¥µÄСд½ð¶îתÖÐÎĵĺ¯Êý

'×÷Õß: º£ÀêÏÈÉú

Dim i As Integer, strMoney As String
   
   strMoney = StrReverse(Format(Money, "#.##") * 100)
   
   If Len(strMoney) > 14 Then MsgBox "³¬³ö·¶Î§£¡": Exit Function

   For i = 1 To Len(strMoney)
      URmb = Mid$("ÁãÒ¼·¡ÈþËÁÎé½Æâ°Æ¾Á", Mid$(strMoney, i, 1) + 1, 1) & Mid$("·Ö½ÇԪʰ°ÛǪÍòÊ°°ÛǪÒÚÊ°°ÛǪ", i, 1) & URmb
   Next

End Function
10#
·¢±íÓÚ 2007-7-17 18:43:00 | Ö»¿´¸Ã×÷Õß



ËÑË÷Ò»ÏÂÀý×ÓÓкöà

±¾Ìû×ÓÖаüº¬¸ü¶à×ÊÔ´

ÄúÐèÒª µÇ¼ ²Å¿ÉÒÔÏÂÔØ»ò²é¿´£¬Ã»ÓÐÕʺţ¿×¢²á

x
ÄúÐèÒªµÇ¼ºó²Å¿ÉÒÔ»ØÌû µÇ¼ | ×¢²á

±¾°æ»ý·Ö¹æÔò

QQ|Õ¾³¤ÓÊÏä|СºÚÎÝ|ÊÖ»ú°æ|OfficeÖйú/AccessÖйú ( ÔÁICP±¸10043721ºÅ-1 )  

GMT+8, 2024-11-13 15:41 , Processed in 0.100660 second(s), 34 queries .

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

¿ìËٻظ´ ·µ»Ø¶¥²¿ ·µ»ØÁбí