不错呦!smile@林凯西,确保“准备文件”中的几个文件都有安装,S...您好,看了您这篇帖子觉得很有帮助。但是有个问题想请...我的修改过了怎么还被恶意注册呢 @jjjjiiii 用PJ快9年了,主要是A...PJ3啊,貌似很少有人用PJ了,现在不是WP就是z...@332347365,我当时接入时错误码没有-10...楼主,ChkValue值应为-103是什么意思呢?...大哥 你最近能看到我发的信息,请跟我联系,我有个制...
ASP中获取汉字拼音的第一个字母
编辑:admin 日期:2006-06-28
<%
'获取汉字拼音第一字母
Function getPY(char)
dim tmp
tmp=65536+asc(char)
If (tmp >= 45217 and tmp <= 45252) Then
getPY = "A"
ElseIf (tmp >= 45253 and tmp <= 45760) Then
getPY = "B"
ElseIf (tmp >= 45761 and tmp <= 46317) Then
getPY = "C"
ElseIf (tmp >= 46318 and tmp <= 46825) Then
getPY = "D"
ElseIf (tmp >= 46826 and tmp <= 47009) Then
getPY = "E"
ElseIf (tmp >= 47010 and tmp <= 47296) Then
getPY = "F"
ElseIf (tmp >= 47297 and tmp <= 47613) Then
getPY = "G"
ElseIf (tmp >= 47614 and tmp <= 48118) Then
getPY = "H"
ElseIf (tmp >= 48119 and tmp <= 49061) Then
getPY = "J"
ElseIf (tmp >= 49062 and tmp <= 49323) Then
getPY = "K"
ElseIf (tmp >= 49324 and tmp <= 49895) Then
getPY = "L"
ElseIf (tmp >= 49896 and tmp <= 50370) Then
getPY = "M"
ElseIf (tmp >= 50371 and tmp <= 50613) Then
getPY = "N"
ElseIf (tmp >= 50614 and tmp <= 50621) Then
getPY = "O"
ElseIf (tmp >= 50622 and tmp <= 50905) Then
getPY = "P"
ElseIf (tmp >= 50906 and tmp <= 51386) Then
getPY = "Q"
ElseIf (tmp >= 51387 and tmp <= 51445) Then
getPY = "R"
ElseIf (tmp >= 51446 and tmp <= 52217) Then
getPY = "S"
ElseIf (tmp >= 52218 and tmp <= 52697) Then
getPY = "T"
ElseIf (tmp >= 52698 and tmp <= 52979) Then
getPY = "W"
ElseIf (tmp >= 52980 and tmp <= 53688) Then
getPY = "X"
ElseIf (tmp >= 53689 and tmp <= 54480) Then
getPY = "Y"
ElseIf (tmp >= 54481 and tmp <= 62289) Then
getPY = "Z"
Else
getPY = ""
End If
End function
%>
'获取汉字拼音第一字母
Function getPY(char)
dim tmp
tmp=65536+asc(char)
If (tmp >= 45217 and tmp <= 45252) Then
getPY = "A"
ElseIf (tmp >= 45253 and tmp <= 45760) Then
getPY = "B"
ElseIf (tmp >= 45761 and tmp <= 46317) Then
getPY = "C"
ElseIf (tmp >= 46318 and tmp <= 46825) Then
getPY = "D"
ElseIf (tmp >= 46826 and tmp <= 47009) Then
getPY = "E"
ElseIf (tmp >= 47010 and tmp <= 47296) Then
getPY = "F"
ElseIf (tmp >= 47297 and tmp <= 47613) Then
getPY = "G"
ElseIf (tmp >= 47614 and tmp <= 48118) Then
getPY = "H"
ElseIf (tmp >= 48119 and tmp <= 49061) Then
getPY = "J"
ElseIf (tmp >= 49062 and tmp <= 49323) Then
getPY = "K"
ElseIf (tmp >= 49324 and tmp <= 49895) Then
getPY = "L"
ElseIf (tmp >= 49896 and tmp <= 50370) Then
getPY = "M"
ElseIf (tmp >= 50371 and tmp <= 50613) Then
getPY = "N"
ElseIf (tmp >= 50614 and tmp <= 50621) Then
getPY = "O"
ElseIf (tmp >= 50622 and tmp <= 50905) Then
getPY = "P"
ElseIf (tmp >= 50906 and tmp <= 51386) Then
getPY = "Q"
ElseIf (tmp >= 51387 and tmp <= 51445) Then
getPY = "R"
ElseIf (tmp >= 51446 and tmp <= 52217) Then
getPY = "S"
ElseIf (tmp >= 52218 and tmp <= 52697) Then
getPY = "T"
ElseIf (tmp >= 52698 and tmp <= 52979) Then
getPY = "W"
ElseIf (tmp >= 52980 and tmp <= 53688) Then
getPY = "X"
ElseIf (tmp >= 53689 and tmp <= 54480) Then
getPY = "Y"
ElseIf (tmp >= 54481 and tmp <= 62289) Then
getPY = "Z"
Else
getPY = ""
End If
End function
%>
评论: 1 | 引用: 0 | 查看次数: 5366
发表评论
请登录后再发表评论!