当前位置: 首页 > news >正文

amp网站建设合肥网站到首页排名

amp网站建设,合肥网站到首页排名,音乐网站制作源代码,wordpress心情评论插件有时候#xff0c;我们需要显示中文大写金额#xff0c;比如打印银行付款申请单等。 新建一个工程#xff0c;加入一个标准模块在模块中加入如下代码#xff0c;窗口中调用 AmountInChineseWords 函数即可。最大解析到百万亿#xff0c;小数最多解析两位到分。 模块代码…有时候我们需要显示中文大写金额比如打印银行付款申请单等。 新建一个工程加入一个标准模块在模块中加入如下代码窗口中调用  AmountInChineseWords 函数即可。最大解析到百万亿小数最多解析两位到分。 模块代码如下  用户昵称: 留下些什么 个人简介: 一个会做软件的货代 CSDN网址https://blog.csdn.net/zezese 电子邮箱31319180qq.comOption Explicit最大解析到百万亿小数最多解析两位到分Function AmountInChineseWords(Amount As Double) As StringIf Amount 0 ThenAmountInChineseWords 负 AmountInChineseWords(Abs(Amount))Exit FunctionEnd IfDim strValue As String, strValueInWord As StringstrValue CStr(Amount)Dim nPoint As IntegernPoint InStrRev(strValue, .)If nPoint 0 Then 有小数点If Amount 1 ThenstrValueInWord DecimalInWord(Mid$(strValue, nPoint 1), True)ElsestrValueInWord IntegerInWord(Left$(strValue, nPoint - 1)) DecimalInWord(Mid$(strValue, nPoint 1), False)End IfElse 没有小数点strValueInWord IIf(Amount 0, 零, IntegerInWord(strValue) 整)End IfAmountInChineseWords strValueInWordEnd FunctionPrivate Function DecimalInWord(strValue As String, bTotalAmountLessThanOne As Boolean) As StringDim strChineseNumericWords()strChineseNumericWords Array(零, 壹, 贰, 叁, 肆, 伍, 陆, 柒, 捌, 玖)Dim strRMBUnits()strRMBUnits Array(角, 分)Dim i As Integer, nValue As IntegerDim strTmp As String, strValueInWord As StringFor i 1 To Len(strValue)nValue CInt(Mid$(strValue, i, 1))strTmp strChineseNumericWords(nValue) _IIf(nValue 0, strRMBUnits(i - 1), )strValueInWord strValueInWord strTmpIf i 2 Then Exit For 最多处理两位小数到分NextIf bTotalAmountLessThanOne And Left$(strValueInWord, 1) 零 Then 0.01 这种情况需要把前面的零去掉strValueInWord Mid$(strValueInWord, 2)End IfDecimalInWord strValueInWordEnd FunctionPrivate Function IntegerInWord(strValue As String) As StringDim strChineseNumericWords(), strChineseNumericUnits()strChineseNumericWords Array(零, 壹, 贰, 叁, 肆, 伍, 陆, 柒, 捌, 玖)strChineseNumericUnits Array(, 拾, 佰, 仟, 万, 拾, 佰, 仟, 亿, 拾, 佰, 仟, 万, 拾, 佰, 仟)Dim i As Integer, nValue As IntegerDim strTmp As String, strValueInWord As StringFor i 1 To Len(strValue)nValue CInt(Mid$(strValue, Len(strValue) - i 1, 1))If (i 5 Or i 9 Or i 13) And nValue 0 Then 万, 亿, 万亿位strTmp strChineseNumericUnits(i - 1)ElsestrTmp strChineseNumericWords(nValue) _IIf(nValue 0, strChineseNumericUnits(i - 1), )End IfstrValueInWord strTmp strValueInWordIf i - 1 UBound(strChineseNumericUnits) Then Exit For 最多处理到万亿Next多个零只显示一个零DoIf strValueInWord Like *零零* ThenstrValueInWord Replace$(strValueInWord, 零零, 零)ElseExit DoEnd IfLoop处理一些特殊情况If strValueInWord Like *零万* ThenstrValueInWord Replace$(strValueInWord, 零万, 万)End IfIf strValueInWord Like *零亿* ThenstrValueInWord Replace$(strValueInWord, 零亿, 亿)End IfIf strValueInWord Like *亿万* ThenstrValueInWord Replace$(strValueInWord, 亿万, 亿)End If去头去尾If Left$(strValueInWord, 1) 零 ThenstrValueInWord Mid$(strValueInWord, 2)End IfIf Right$(strValueInWord, 1) 零 ThenstrValueInWord Left$(strValueInWord, Len(strValueInWord) - 1)End IfIntegerInWord strValueInWord 元End Function
http://www.hkea.cn/news/14407125/

相关文章:

  • 中国做外贸的网站有哪些做商品网站数据库有哪些
  • 潍坊网站优化公司wordpress修改备案号
  • 帝国小说网站模板wordpress下载模板怎么用
  • 在车子男女做的视频网站权威数据统计网站
  • 网络推广网站套餐建设工程网站资质人员查询
  • 建电影网站赚钱挣钱吗互动网门户网站建设
  • 西安十大网站制作公司公众号开发运营方案
  • 中电建铁路建设公司网站厦门网站设计排行
  • 快速生成网站程序wordpress首页显示标签
  • 资源分享网站怎么做阿里巴巴国际站入口
  • 网站建设及维护服务器网站营销做的好的律师
  • 学网站建设 赚钱网站建设尺寸
  • 自助建站软件自动建站系统网站建设仟首先金手指14
  • 新网站如何做流量wordpress天气插件
  • 用asp做的网站有多少渭南建设工程信息网
  • 传奇手游发布网站芙蓉区乡建设局网站
  • 石家庄做网站排名php 上传移动到网站根目录
  • 特色个人网站网站推广业务
  • 园林景观设计公司发展规划网站如何做进一步优化
  • 郑州手机网站推广外包一般做网站多少钱
  • 仙居微信网站开发单页网站排名优化
  • 网站建设有哪些软件有哪些方面域名网站教程
  • 最好茶叶网站建设全国企业信息公开系统
  • 西安网站建设收费标准淘客网站开发
  • 简述网站制作步骤昆山做网站公司哪家好
  • 织梦做中英文网站详细步骤台州建设网站制作
  • 企业网站的作用在门户网站做产品单页多少钱一天
  • 做app_需要先做网站吗访问的网页正在升级中
  • 做网站公司哪家正规免建网站
  • 网站架构 规划wordpress首页加广告