Foxtable(狐表)用户栏目专家坐堂 → 转换问题


  共有3538人关注过本帖树形打印复制链接

主题:转换问题

帅哥哟,离线,有人找我吗?
有点甜
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2013/12/20 22:18:00 [显示全部帖子]

 转换一下不就行了?免得重写,用一个简单笨笨的方法

Dim data As Integer = 23
Dim nums1() As String = {"壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖", "拾"}
Dim nums2() As String = {"一", "二", "三", "四", "五", "六", "七", "八", "九", "十"}
Dim result As String = CUNumber(data)
For i As Integer = 0 To nums1.Length - 1
    result = result.Replace(nums1(i), nums2(i))
Next

msgbox(result)

 回到顶部