一个一个取啊,然后判断每个取得的字符的ARC码是否在英文ARC码范围内,如果不在,默认为中文,保存下来就行了
解决方案 »
- mshflexgrid显示的datetime类型的字段时为什么会有时间??
- 数据库的连接!!!!
- 怎么,用VB的print语句显示16进制数据!~
- 怎么独占的打开一个access数据库?也就是我打开这个数据库的时候,不允许其它任何人再打开它
- [求助]OLE控件无效
- 关于 文件上传
- transaction context该如何翻译?
- 一个比较疑惑的问题!
- 以前我用过一个动态Gif显示控件,右键有属性,功能有点像imagelist,而且不用注册,可以动态显示,可以停止显示,谁有话请发给我一份,马
- 火急,如何在软件中更改系统的光标?
- 一个WINSOCK的问题(文件群发)
- 为什么打包后不能在2000下安装运行?
If Len(Hex$(asciiv)) > 2 Then
isChinese = True
Else
isChinese = False
End If
End FunctionPrivate Sub Form_Load()
Dim strSource As String
Dim strDestination As String
Dim i As Integer
Dim strSelect As String
strSource = CStr(InputBox("Please input the source string:", "convert"))
strDestination = ""
strSelect = ""
For i = 1 To Len(strSource)
strSelect = Mid(strSource, i, 1)
If isChinese(Asc(strSelect)) Then
strDestination = strDestination + Mid(strSource, i, 1)
End If
Next i
If strDestination = "" Then
MsgBox "没有中文字符!"
Else
Text1.Text = strDestination
End If
End Sub