给你一个整型变量,要求把它编程和它一致的中文大写字符串??
如23456转化成"贰叁肆伍陆"
如23456转化成"贰叁肆伍陆"
解决方案 »
- 如何截取这段字符,在表格中浏览?
- 如何让程序在执行比较耗时的操作时,能够随时刷新窗口?
- 如何把Word应用程序当作VB程序的子窗口?
- 那有免费的SMS控件下载?
- mshflexgrid控件为什么每次只能显示几百条记录啊?
- 输入内容以表格形式打印,如何实现?
- 我想建一个综合查询的程序,可是总是不行,请大家帮我呀!急用。。在线等。
- 如何用api函数划波浪线?
- 請問~~~如果在VB里動態建立一個控件,像TEXTBOX那種~~~
- 在鼠标事件MouseDown中Button参数和Shift参数怎么用?
- 请问高手在VB中怎么处理文件夹中的空格问题?
- AutoCAD2002中VBA开发环境mshflexgrid控件显示光标位置问题!
Private Sub Command1_Click()
Dim strTemp As String * 1, i%, x As String, strResult As String, strCmp As String
x = "1234589"
strCmp = "贰叁肆伍陆柒八九"
For i = 1 To Len(x)
strTemp = Mid(x, i, 1)
strResult = strResult & Mid(strCmp, strTemp, 1)
Next
Debug.Print strResult
End Sub
Dim strTemp As String * 1, i%, strResult As String, strCmp As String strCmp = "壹贰叁肆伍陆柒八九"
For i = 1 To Len(CStr(pStr))
strTemp = Mid(CStr(pStr), i, 1)
strResult = strResult & Mid(strCmp, strTemp, 1)
Next
Debug.Print strResult
End Function
'调用
Private Sub Command1_Click()
Dim strRet As String
strRet = cNumToStr(23456)
Debug.Print strRet
End Sub
Dim s As String
s = "零壹贰叁肆伍陆柒八九"
Dim tmp As String, t As String
tmp = CStr(n)
Dim i As Long
For i = 0 To 9
tmp = Replace(tmp, CStr(i), Mid(s, i + 1, 1))
Next
test = tmp
End FunctionPrivate Sub Command1_Click()
MsgBox test(34901)
End Sub
shownum "01234567890"
End SubSub shownum(ByVal num As String)
Text1.Text = ""
Text1.IMEMode = 1
Text1.SetFocus
SendKeys "I" & num
SendKeys " "
End Sub
shownum "0123456789"
End SubSub shownum(ByVal num As String)
num = "I" & num & " "
Text1.Text = ""
Text1.IMEMode = 1
Text1.SetFocus
SendKeys num
End Sub