最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
正确显示数据库里同时存在的GB码和BIG5码:
时间:2022-06-30 11:18:33 编辑:袖梨 来源:一聚教程网
Public Function CheckBIG(strSource As String) As Boolean
Dim idx As Long
Dim ByteTemp() As Byte
CheckBIG = False
For idx = 1 To Len(strSource)
ByteTemp = StrConv(Mid(strSource, idx, 1), vbFromUnicode)
If UBound(ByteTemp) > 0 Then
If (ByteTemp(1) >= 64) And (ByteTemp(1) <= 126) Then
CheckBIG = True
Exit For
End If
End If
Next idx
End Function
Dim idx As Long
Dim ByteTemp() As Byte
CheckBIG = False
For idx = 1 To Len(strSource)
ByteTemp = StrConv(Mid(strSource, idx, 1), vbFromUnicode)
If UBound(ByteTemp) > 0 Then
If (ByteTemp(1) >= 64) And (ByteTemp(1) <= 126) Then
CheckBIG = True
Exit For
End If
End If
Next idx
End Function
相关文章
- .Net行为型设计模式之状态模式(State) 09-17
- .Net行为型设计模式之观察者模式(Observer) 09-17
- .Net行为型设计模式之迭代器模式(Iterator) 09-17
- .Net行为型设计模式之命令模式(Command) 09-17
- .Net行为型设计模式之模板方法模式(Template Method) 09-17
- .Net结构型设计模式之代理模式(Proxy) 09-17